Tuesday, July 1, 2008

How to Get Client IP using C#..?

Following Lines are help us to get Client IP using C#.

string myHost = System.Net.Dns.GetHostName();

string myIP = System.Net.Dns.GetHostByName(myHost).AddressList[0].ToString();

1 comment:

Anonymous said...

Good its very use full for me thanks:)