Today, Mytour will guide you on how to determine whether a specific port on your computer or network is open.
Steps
Check External Port

Visit http://www.canyouseeme.org using your web browser. This website is useful if the port belongs to a computer or network with internet access. The site will automatically detect the user's IP address and display it in the "Your IP" field.
- There are various websites available for checking open ports. If needed, you can search for alternatives using the keyword "open port check tool" on your preferred search engine.

Enter the port. Input the port number you wish to check (e.g., 22 for SSH) into the "Port to Check" field.
Click on Check Port. If the port is open and accessible, a confirmation message will appear. Otherwise, you will see an error message: "Error: I could not see your service on (your IP address) on port (port number)".
Check if the application is allowed through the Windows Firewall
Open the Windows search tool and type firewall. If the search bar is not already open, click on the circle or magnifying glass to the right of the Start menu.
- Use this method if you want to verify whether Windows is configured to allow the application you installed to pass through the firewall.
- Windows Firewall is enabled by default. If you have installed third-party firewall software, you can use it to check if the application is permitted to pass through.
Click on Windows Defender Firewall. The Firewall and Network Protection settings will open.
Click on Allow an app through firewall. This is one of the text links located near the bottom of the window. A list of applications permitted to pass through the firewall will appear.
- If the app is only allowed through the firewall when connected to a network marked as "private" (e.g., when your computer connects to a home network), a checkmark will appear in the "Private" column next to the app.
- If the app is allowed through the firewall when connected to a public network, a checkmark will appear in the "Public" column.
Allow an app or port not listed to pass through the firewall. If you don’t see the desired app in the "Allowed apps and features" list, click the Change Settings button at the top right corner, then follow these steps:
- Click Allow another app near the bottom.
- Click Browse, select the app, and click Open.
- Click Network Types at the bottom left, choose private settings, and click OK.
- Click Add to include the app and select OK.
Check if the app is allowed through the Mac firewall
System PreferencesClick on Security & Privacy. This option has a house icon and is located in the top row.
Click on the Firewall tab near the top center of the window.
- If you see "Firewall: On" at the top of this tab, the firewall is active.
- If the firewall is inactive and you want to enable it, click the lock icon at the bottom left of the window, enter the administrator password, and then click Turn On Firewall.
Click on Firewall Options. The settings will open, displaying a list of applications and services that can be configured to allow or block incoming connections.
- If an app or service shows a green dot and the text "Allow incoming connections," the port is open.
- If you see a red dot and "Block incoming connections," the port is closed.
- You can toggle the port's status by clicking the double arrow icon next to the app's current status and selecting the desired action.
Check if the local router port is open (Windows)
Enable Telnet on Windows. You can use Telnet to check if a specific port is open on your router or gateway. Here’s how to enable it:
- Type windows features into the search bar. If the search bar isn’t visible, click the circle or magnifying glass to the right of the Start menu.
- Click Turn Windows features on or off.
- Check the box next to Telnet Client and click OK.
- Click Close once the installation is complete.
Open the command line by:
- Typing cmd into the Windows search bar.
- Clicking Command Prompt in the search results.
Type ipconfig into the command prompt and press ↵ Enter. A list of network information will appear.
Note down the router's IP address. The address displayed next to "Default Gateway" in the ipconfig results is the local address of your router.
Type telnet into the command prompt and press ↵ Enter. The Microsoft Telnet command prompt will open.
Type open (router IP address) (port number). For example, if you want to check if port 25 is open on your router (router IP address is 10.0.0.1), you would type open 10.0.0.1 25.
Press ↵ Enter. Telnet will attempt to connect to the port.
- If a message like "Please press Enter" or "Press any key to continue" appears, the port is open.
- If the message "Could not open connection" appears, the port is closed.
Check if the local router port is open (Mac)
Open the Terminal window. To do this, open Spotlight by clicking the magnifying glass icon in the top-right corner of the screen, type terminal, and then click Terminal from the search results.
- Use this method to check if a specific port is open on your local router or access point.
Type netstat –nr &# 124; grep default into the command prompt and press ⏎ Return. The router's IP address will appear next to the "default" line at the top of the results.
Type nc –vz (router IP address) (port). For example, if the IP address is 10.0.0.1 and you want to check if port 25 is open on the router, type netcat 10.0.0.1 25.
Press ⏎ Return. Here’s how to interpret the results:
- If the port is open, you’ll see a message indicating a successful connection.
- If the port is closed, you’ll see a message stating the connection was refused or timed out.
