I have a IIS hosted ASP.NET WebAPI app and im using ServerVariables["REMOTE_ADDR"]
to get the client address and identify the user: client logs in and i will generate a cookie that contains the client IP. In subsequent calls i will get the IP from the cookie, and validate that it is correct.
Can i trust the address, or is there a way that ServerVariables["REMOTE_ADDR"]
returns e.g. 161.121.222.223
and the client is really somewhere else?