Categories

Thousands of experts bid on your personal project at ScriptLance.com

get ip address

get ip address with VB.net

Module Module1

Sub Main()
Dim h As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName)
Console.WriteLine(CType(h.AddressList.GetValue(0), Net.IPAddress).ToString)
End Sub

End Module

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

You must be logged in to post a comment.