See Also: SocketPermission Members
System.Net.SocketPermission instances control permission to accept connections or initiate System.Net.Sockets.Socket connections. A System.Net.Sockets.Socket permission can be established for a host name or IP address, a port number, and a transport protocol.
Avoid creating socket permissions using host names, as these names have to be resolved to IP addresses, and this might block the stack.