Get IP Address of Client and Server Sytem

Posted by Lakhangarg under ASP.NET category on | Views : 2505
Code To Get the IP Address of Client's Machine:

Code To Get the IP Address of Host:
private void GetHostaddress()
string strHostName = Dns.GetHostName();
IPAddress[] ips;
ips = Dns.GetHostAddresses(strHostName);
foreach (IPAddress ip in ips)

Thanks & Regards
Lakhan Pal Garg

Comments or Responses

Login to post response