HttpListener Constructor (IPAddress, Int32)

Mentalis.org Proxy

Mentalis.org Proxy Documentation

HttpListener Constructor (IPAddress, Int32)

Initializes a new instance of the HttpListener class.

[Visual Basic]Overloads Public Sub New( _
   ByVal Address As System.Net.IPAddress, _
   ByVal Port As Integer _
)
[C#]
public HttpListener(
   IPAddress Address,
   int Port
);

Parameters

Address
The address to listen on. You can specify IPAddress.Any to listen on all installed network cards.
Port
The port to listen on.

Remarks

For the security of your server, try to avoid to listen on every network card (IPAddress.Any). Listening on a local IP address is usually sufficient and much more secure.

See Also

HttpListener Class | HttpListener Members | Org.Mentalis.Proxy.Http Namespace | HttpListener Constructor Overload List