在程序里怎样才知道本机的IP,该怎么解决

在程序里怎样才知道本机的IP同题目问[解决办法]Dim ipAddress As System.Net.IPAddress System.Net.Dns.

在程序里怎样才知道本机的IP
同题目问

[解决办法]
Dim ipAddress As System.Net.IPAddress = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName()).AddressList(0)