Get current IP address

  • Thread starter Thread starter Larry
  • Start date Start date
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)
 
Dim defaultIPAddress As String =
Dns.Resolve(System.Environment.MachineName).AddressList(0).ToString
 
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.
 
Back
Top