| View previous topic :: View next topic |
| Author |
Message |
mouli
Joined: 24 Aug 2007 Posts: 84
|
Posted: Wed Mar 12, 2008 12:19 pm Post subject: Finding IP Address with Web Service in asp.net |
|
|
hi,
I am working on a networking application i could not able find a IP address of the specific system. can any one let me how can i find DNS of the particular system.....please let me know asap...
thanking you inadvance.... |
|
| Back to top |
|
 |
muralikrishna
Joined: 21 Aug 2007 Posts: 36
|
Posted: Wed Mar 12, 2008 12:27 pm Post subject: |
|
|
hi,
here the following method gives web service performs Domain Name Lookups.
Description : when a client enters host name can be able to get corresponding IP address of the system.
public string GetIPforHostName(string strHostName)
{
IPHostEntry iphost = Dns.GetHostByAddress(strHostName);
return iphost.HostName.ToString();
}
Try this web service .......it helps you a bit...... |
|
| Back to top |
|
 |
|