There are many ways to test a connection to your server, but we’ll walk you through a couple of our favorites:
PowerShell (Windows)
- Open a PowerShell window
- Enter this command:
New-Object System.Net.Sockets.TcpClient("[Server IP/Hostname]", "[Port Number]")
- [Server IP/Hostname]: Replace this with your server’s public IP or Hostname
- [Port Number]: Replace this with the port you wish to test
- Example:
New-Object System.Net.Sockets.TcpClient("192.168.1.100", "5053")
- If the connection is successful, you will see a list of connection details; Look for the
Connection: True
line - If the connection fails, PowerShell will display an error message
- Repeat this for each port you want to test
Network Utility (Mac OSX)
Mac includes a special built-in tool that can test many aspects of your network, including probing TCP ports.
- Press
Cmd + Spacebar
to open Spotlight - In the search bar, enter “Network Utility” and select the first result
- Select the “Port Scan” tab
- In the first textbox, enter the IP address or Hostname of your server
- Select the checkbox next to “Only test ports between…”
- Enter the same number in both boxes to test one port OR enter two different numbers to test a range of ports; This is useful if your three required ports are close to each other.
- Click “Scan” and wait for the results to appear
The image below shows an example with successful results on all three ports.
Comments
0 comments
Article is closed for comments.