jazzmaster111
Programmer
Hi:
How can I get the client's ip address?
Thanks!!
How can I get the client's ip address?
Thanks!!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Function LocalIP() As String
Dim h As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName)
Return CType(h.AddressList.GetValue(0), Net.IPAddress).ToString
End Function
Public Function RemoteHostIP(ByVal _Client As Socket) As String
Dim iEP As IPEndPoint = _Client.RemoteEndPoint
Return iEP.Address.ToString
End Function