Initializes a new instance of the Listener class.
[Visual Basic]Public Sub New( _
ByVal Port As Integer, _
ByVal Address As System.Net.IPAddress _
)
[C#]
public Listener(
int Port,
IPAddress Address
);
Parameters
- Port
- The port to listen on.
- Address
- The address to listen on. You can specify IPAddress.Any to listen on all installed network cards.
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
Listener Class | Listener Members | Org.Mentalis.Proxy Namespace