Sets or gets the IP address associated with an IPEndPoint object.
ipendpoint_object.IPAddress =<ip_address_string>
-or-
...ipendpoint_object.IPAddress
Prerequisites
None
Parameters
None
Remarks
The IP Address identifies a computer or computer-based device on the network. If empty, the IP address is assumed to be a “wild card”, matching any address.
This property converts the IP Address part of an IPEndPoint Object to or from a string value. The string value contains the address in the form nnn.nnn.nnn.nnn where each nnn field is a decimal number representing 8 bits of the 32-bit IP address.
Examples
Dim ep As New IPEndPoint()
ep.IPAddress = "192.168.0.2" ' Assign the IP Address to the endpoint
Console.Writeline(ep.IPAddress) ' Display the IP Address of the endpoint
See Also