How to test if a port is open on a remote server
If a connection to an Office Maker or BiblioMaker server fails, you can check whether the port can be reached on the server as follows:
Windows
Start the PowerShell application and enter the following command:
tnc [server address] -port [port number]
Example
tnc cloud3.officemaker.ch -port 19813
Alternative : use the PortQryUI application (developped by Microsoft) available here (instructions for use).
macOS
Start the Terminal application and enter the following command:
nc -vz [server address] [port number-port number]
Notes
- Do not use this command to test a port in UDP, as the result will be unreliable.
- If a port cannot be reached, the test result may take up to 1 minute per port tested. So limit yourself to testing ranges of 2-3 ports at a time.
Examples
nc -vz cloud15.officemaker.ch 19812-19815 (test TCP port range 19812 to 19815)
Tests results
If the test result is a failure, this indicates that the port under test cannot be reached for one of the following reasons:
- The remote server is switched off.
- The remote server is up, but the application using the port is down.
- A firewall prevents connection between your workstation and the server.