Méthode | Description | |
---|---|---|
EnablePortForFirewall ( string ruleName, int portNumber ) : bool |
Creates rule in firewall settings to enable the port.
|
|
IsPortAvailable ( int portNumber ) : bool |
Checks if the given port is free to use or not.
|
public static EnablePortForFirewall ( string ruleName, int portNumber ) : bool | ||
ruleName | string | |
portNumber | int | |
Résultat | bool |
public static IsPortAvailable ( int portNumber ) : bool | ||
portNumber | int | |
Résultat | bool |