Sets or gets the port number associated with an IPEndPoint Object.
ipendpoint_object.Port= <port_number>
-or-
...ipendpoint_object.Port
Prerequisites
None
Parameters
None
Remarks
The port number specifies a process, protocol, or connection at an endpoint. This number may range from 0 to 65536.
This property sets or gets the port number of an IPEndPoint Object.
Examples
Dim ep As New IPEndPoint()
ep.Port = 1234 ' Set the port of an endpoint object
Console.Writeline(ep.Port) ' Display the port of the endpoint
See Also
Networking Classes | NewIPEndPoint | ipendpoint_object.IPAddress