.NET set HttpClient sent request from one IP

35 Views Asked by At

I'm working on my project and I use connection to FatSecret API in my .NET 6 app, and I have a problem that my app is using IP that I'm currently connected to from the Internet Provider. The question is can I somehow set this by kestrel or anyhow to set my app IP to be sending from one IP always?

I tried to set range of IPs, like xxx.xxx.xxx.xxx/24, on the FatSecret API page but, I believe, I cannot do this unless I'm premium user of this API and no I can't afford this only for this project.

0

There are 0 best solutions below