System.Web.Hosting.SimpleWorkerRequest.GetRemotePort Method

Returns the client's port number.

Syntax

public override int GetRemotePort ()

Returns

The client's port number.

Remarks

When a client (web browser) connects to a server, it is assigned a port to communicate over. This value represents that port.

Requirements

Namespace: System.Web.Hosting
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0