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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top