IPAddress.Address : IP Address « Network Remote « VB.Net






IPAddress.Address

 

Imports System.IO
Imports System.Net
Imports System.Text

public class MainClass
   Shared Sub Main()

        Dim IpAddressString As [String] = "192.1.168.1"

        Dim hostIPAddress As IPAddress = IPAddress.Parse(IpAddressString)
        Console.WriteLine("The IP address '" + IpAddressString + "' is {0}", hostIPAddress.ToString())

   End Sub

End Class

   
  








Related examples in the same category

1.Get your IP address
2.IPAddress.Broadcast Field provides the IP broadcast address. This field is read-only.
3.IPAddress.Loopback
4.IPAddress.None indicates that no network interface should be used. This field is read-only.
5.IPAddress.Parse converts an IP address string to an IPAddress instance.
6.Create IPEndPoint class with the specified address and port number.
7.IPEndPoint.Create creates an endpoint from a socket address.
8.Serializes endpoint information into a SocketAddress instance.