This method of the NetIOPermission Class adds an allowed or denied hostname pattern to the connect permissions.
public void addConnectHost(String hostspec, boolean fAllow);
hostspec | The host specification. |
fAllow | If the value is true, allow connections to the specified hosts. If the value is false, explicitly deny connections to the specified hosts. |