I have tried fetching the ip from below mentioned methods
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] &
Request.UserHostAddress & Request.ServerVariables["REMOTE_ADDR"]
The problem is this that Request.ServerVariables["REMOTE_ADDR"] return Proxy ip and
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] can be tampered i want a foolproof method of fetching ip of client which cannot be tampered any help in this regard would be highly appreciated.
Does not exist. Sorry.
Suppose the user is behind the corporate proxy. You’ll be getting this proxy IP which for all intents and purposes is the closest thing to the user’s IP. I mean if you got the user’s final internal IP like 192.168.0.15 of what use would that be to you?