Hi, I need to know IP address of my clients applications. I thought that i could get them by RemoteEndPOint, but when I did some test, I realized that I won't be able to do it through that way. This is what I did (just as an example):

Dim IP As New IPEndPoint("127.0.0.1", 8050)

IP.ToString 'Returns 25.240.1.0:8050

IP.Address.ToString 'Returns 25.240.1.0

IP.Address.Address.ToString 'Returns 127001


So, noting that I don't have any way to get the ip address from an IPEndPoint, how can i know it?. Another thing I don't understand is if I created an IPEndPoint with 127.0.0.1 as IPAddress, why it returns 25.240.1.0?.

Thank you very much.