mohlal asked this 4 years ago

How to get the current IP address in VB.net

How can I get the current IP address on a VB.Net 2017 application?


Julia 4 years ago

This is how you get the IP address of localhost.

Dim strIPAddress As String = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName).AddressList(0).ToString