mohlal asked this 6 months 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 6 months 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