Since changing my server hosting to a new provider (ovh),
I don't manage to get the client's IP using a simple Request.ServerVariables["REMOTE_HOST"]
.
It always returns 10.0.1xx.2xx (masked the exact value, don't know if that matters) which seems like an internal server IP to me.
Calling Request.ServerVariables["REMOTE_ADDR"]
and Request.ServerVariables["LOCAL_ADDR"]
gives the same results.
The code is called from withing Global.asax if that is relevant.
Any idea ?
I've had same problem today with OVH.
Seems Request.ServerVariables["HTTP_REMOTE_IP"]
return the good ip