IPEndPoint Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Represents a network endpoint as an IP address and a port number.
Assembly: System.Net (in System.Net.dll)
The IPEndPoint type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | IPEndPoint(Int64, Int32) | Initializes a new instance of the IPEndPoint class with the specified IP address and port number. |
![]() | IPEndPoint(IPAddress, Int32) | Initializes a new instance of the IPEndPoint class with the specified address and port number. |
| Name | Description | |
|---|---|---|
![]() | Address | Gets or sets the IP address of the endpoint. |
![]() | AddressFamily | Gets the Internet Protocol (IP) address family. (Overrides EndPoint::AddressFamily.) |
![]() | Port | Gets or sets the port number of the endpoint. |
| Name | Description | |
|---|---|---|
![]() | Create | Creates an endpoint from a socket address. (Overrides EndPoint::Create(SocketAddress).) |
![]() | Equals | Determines whether the specified Object is equal to the current IPEndPoint instance. (Overrides Object::Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns a hash value for an IP endpoint. (Overrides Object::GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Serialize | Serializes endpoint information into a SocketAddress instance. (Overrides EndPoint::Serialize().) |
![]() | ToString | Returns the IP address and port number of the specified endpoint. (Overrides Object::ToString().) |
The IPEndPoint class contains the host and remote port information needed by an application to connect to a service on a host. By combining the host's IP address and port number of a service, the IPEndPoint class forms a connection point to a service.
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_NETWORKING | Windows Phone 8, Windows Phone OS 7.1 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.




