I want to see the ip of a client connected to my web site. I'm developing in asp.net + vb.net.
I've added this to my code:
Dim clientIp As String = Request.UserHostAddress
or
Dim clientIp As String = Request.ServerVariables("REMOTE_ADDR")
And when i'm on the localhost i get the right '::1' string.
But when i deploy the webapp and i connecting from another pc i get the ip of the server in "clientIp"
So, how i can get the client ip??