Wednesday, July 3, 2013

asp.net - Vb.Net - how to get IP address using asp.net

to get the client pc IP, write the following code

System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName()).GetValue(1).ToString()

No comments:

Post a Comment