Discover Local Machine's IP Address

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

How can I programmatically discover the IP address of the computer on which
my assembly is executing?

Thanks.
 
I sent that before I was ready

Call System.Net.DNS.GetHostName - gets local macine name
Call System.Net.DNS.GetHostByName(localMachineName) gets IPHostEntr
Use the AddressList property of IPHostEntry to get IPAddresses

Jackson Davis [MSFT
-
This posting is provided "AS IS" with no warranties, and confers no right
Samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


----- Mark wrote: ----

How can I programmatically discover the IP address of the computer on whic
my assembly is executing

Thanks
 
Back
Top