Answers

Nov 06, 2008 - 12:59 AM
Urm not sure if you can use Request.ServerVariables with your code. Doing a Request.ServerVariables("LOCAL_ADDR") gets the ip.

Nov 06, 2008 - 02:06 AM
Ah, yes, that seems to do the trick.
Thanks
Thanks

Nov 06, 2008 - 02:24 AM
Cool :)

Mar 06, 2014 - 10:29 PM
Hi you can follow the below program to find local servicer ip address:
public string GetIPAddress()
{
string strHostName = System.Net.Dns.GetHostName();
IPHostEntry ipHostInfo = Dns.Resolve(Dns.GetHostName());
IPAddress ipAddress = ipHostInfo.AddressList[0];
return ipAddress.ToString();
}
If you want to check external ip address Ip-Details.com here you can easily find out external ip
Add New Comment