Get current IP address

L

Larry

Does anyone have sample code on how to get the current IP address of a
local machine?

So, how would you ping your own machine and get the IP address of it
(full IP Address)
 
R

Ray Cassick \(Home\)

Dim defaultIPAddress As String =
Dns.Resolve(System.Environment.MachineName).AddressList(0).ToString
 
R

Ray Cassick \(Home\)

Looks like you are trying to get all the local network settings?

To do that you might want to change directions and look at WMI.
 

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

Top