GetIP 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
Related posts:
- list serial ports Module Module1 Sub Main() For Each portName As String In...
- Is network available Module Module1 Sub Main() Dim isAvailable As Boolean isAvailable =...
- Degrees to radians conversion Module Module1 Public Function DegreesToRadians(ByVal degrees As Double) As Double...
- Get the screen size Module Module1 Sub Main() Dim height As Integer = My.Computer.Screen.Bounds.Height...
- Ping an IP address My.Computer.Network.Ping(targetSystem[, timeout]) targetSystem is a string IP address, a host...
Related posts brought to you by Yet Another Related Posts Plugin.
