← Interactive API Explorer
Namespace: System.Net

IPEndPoint

Represents a network endpoint as an IP address and a port number.

Properties (3)

AddressFamily AddressFamily
Gets the Internet Protocol (IP) address family.
Value: Returns InterNetwork.
IPAddress Address
Gets or sets the IP address of the endpoint.
Value: An IPAddress instance containing the IP address of the endpoint.
int Port
Gets or sets the port number of the endpoint.
Value: An integer value in the range MinPort to MaxPort indicating the port number of the endpoint.

Methods (1)

IPEndPoint(Net.IPAddress,Int32)Constructor
Initializes a new instance of the IPEndPoint class with the specified address and port number.
ParameterDescription
addressAn IPAddress.
portThe port number associated with the address, or 0 to specify any available port. port is in host order.