Obtaining IP address

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Hi,
How can I obtain the IP address of the machine that my app is running on?
ie Is there a class or API call that provides this somehow?

Thanks
Bob
 
oops...sorry...you said IP address.... :)

imports system.net

dim x as string = Dns.Resolve(Dns.GetHostName).AddressList(0).ToString
 

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