In my .net core 5 api I need to get the remote IP from request. It works fine on my test server. Checked it several times from different networks.
BUT
on my client's server, I'm getting the same IP address regardless from where I'm calling the API. So, my problem is that on my server everything works fine, but on client's server, I'm getting false IP address.
I've installed the .Net 5 SDK I've compared it to my server and IIS (different versions of IIS, but configuration seems fine)
Any ideas?
x-forwarded-forheader before, if that has a value, then use it. Assuming your proxy server is filling in that value correctly. - DavidG