How to Check if a Port Is Open on Windows or Mac (2024)

  • Categories
  • Computers and Electronics
  • Computer Networking

Download Article

Test the status of a specific local or remote port

Explore this Article

methods

1Checking if a Local Router Port is Open (Windows)

2Checking if a Local Router Port is Open (Mac)

3Checking if an App Is Allowed through Windows Firewall

4Checking an External Port

5Checking if an App is Allowed through Mac Firewall

+Show 2 more...

-Show less...

Other Sections

Video

Related Articles

References

Co-authored byLuigi Oppidoand Nicole Levine, MFA

Last Updated: March 12, 2024Fact Checked

Download Article

Are you looking for a quick way to check if a port on your router or firewall is open? It's actually pretty simple. The right way to do it just depends on whether you’re using a Mac or PC and what kind of port you’re checking. We’ll walk you through how to do it step-by-step on Windows and macOS.

Easy Ways to Identify Open Ports

  • On Windows devices, enable Telnet. Open a command prompt and type “ipconfig.” Use the IP address and port number to locate an open port.
  • For Mac devices, open a Terminal window. Type “netsat -nr | grep default” into the program. Then, type “nc -vs” + your IP + port number to locate.
  • Check an External port by visiting https://canyouseeme.org/ and enter the port you want to check. Click “check port” to see if it’s open and available.

Method 1

Method 1 of 5:

Checking if a Local Router Port is Open (Windows)

Download Article

  1. 1

    Enable Telnet for Windows. You can use Telnet to check if a certain port is open on your local router or access point. Here's how to enable it:[1]

    • Type windows features in to the search bar. If you don't see the search bar, 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 when the app is finished installing.
  2. How to Check if a Port Is Open on Windows or Mac (5)

    2

    Open a command prompt. Here's how to open the command prompt:

    • Type cmd into the Windows search bar.
    • Click Command prompt in the search results.

    Advertisem*nt

  3. 3

    Type ipconfig at the prompt and press Enter. This displays a bunch of network information.

  4. 4

    Write down the router's IP address. The address that appears next to "Default Gateway" in the ipconfig results is the local address of your router.

  5. 5

    Type telnet at the prompt and press Enter. This opens the Microsoft Telnet prompt.

  6. 6

    Type open (router's IP address) (port number). For example, if you wanted to see if port 25 is open on your router, and your router's IP address is 10.0.0.1, you would type open 10.0.0.1 25.

  7. How to Check if a Port Is Open on Windows or Mac (10)

    7

    Press Enter. Telnet will try to connect to the port.

    • If you see a message that says "Please press Enter" or "Press any key to continue," the port is open.
    • If you see a message that says "Could not open connection," the port is not open.
  8. Advertisem*nt

Method 2

Method 2 of 5:

Checking if a Local Router Port is Open (Mac)

Download Article

  1. How to Check if a Port Is Open on Windows or Mac (12)

    1

    Open a Terminal window. To open a Terminal window, open Spotlight by clicking the magnifying glass at the top-right corner of the screen, type terminal, and then click Terminal in the search results.

    • Use this method to see if a port is open on your local router or access point.
  2. 2

    Type netstat -nr | grep default at the prompt and press Return. The router's IP address appears next to "default" at the top of the results.

  3. 3

    Type nc -vz (your router's IP address) (port). For example, if you wanted to see if port 25 is open on your router, and your router's IP address is 10.0.0.1, you would type nc -vz 10.0.0.1 25.

  4. 4

    Press Return. Here's how to interpret the results:

    • If the port is open, you'll see a message that says the connection succeeded.
    • If the port is closed, you'll see a message that says the connection was refused or timed out.
  5. Advertisem*nt

Method 3

Method 3 of 5:

Checking if an App Is Allowed through Windows Firewall

Download Article

  1. How to Check if a Port Is Open on Windows or Mac (17)

    1

    Open Windows search and type firewall. If the search bar is not already open, click the circle or magnifying glass to the right of the Start menu to open it.[2]

    • Use this method if you want to see if Windows is set up to allow an app you've installed to communicate through your firewall.
    • The Windows firewall is enabled by default. If you've installed your own firewall software, use that software to check if an app is allowed through.
  2. 2

    Click Windows Defender Firewall. This opens your Firewall and Network Protection settings.

  3. 3

    Click Allow an app through firewall. It's one of the text links near the bottom of the window. A list of apps allowed through the firewall will appear.

    • If the app is allowed through the firewall only when you're connected to a network you've marked as "private" (such as when you're on your home network), a check will appear in the "Private" column next to the app.
    • If the app is allowed through the firewall when you're connected to a public network, a check will appear in the "Public" column.
  4. How to Check if a Port Is Open on Windows or Mac (20)

    4

    Allow an unlisted app or port through the firewall. If you don't see the app on the "Allowed apps and features" list, click the Change Settings button at the top-right corner, and then follow these steps:[3]

    • Click Allow another app near the bottom.
    • Click Browse, select the app, and then click Open.
    • Click Network Types near the bottom-left corner, select a privacy preference, and then click OK.
    • Click Add to add the app, and then click OK.
  5. Advertisem*nt

Method 4

Method 4 of 5:

Checking an External Port

Download Article

  1. 1

    Go to https://www.canyouseeme.org in a web browser. You can use it to see if a port on your computer or network is accessible on the internet. The website will automatically detect your IP address and display it in the "Your IP" box.[4]

    • There are many different sites you can use to check for an open port. Search for "open port check tool" in your favorite search engine to find an alternative, if desired.[5]
  2. How to Check if a Port Is Open on Windows or Mac (23)

    2

    Enter the port. Type the port you want to check (e.g., 22 for SSH) into the "Port to Check" box.[6]

  3. 3

    Click Check Port. If the port is open and available, you'll see a confirmation message. If not, you'll see a message that says "Error: I could not see your service on (your IP address) on port (the port number)."[7]

  4. Advertisem*nt

Method 5

Method 5 of 5:

Checking if an App is Allowed through Mac Firewall

Download Article

  1. 1

    Click the

    menu and select System Preferences. The Mac firewall is not enabled by default.[8]

  2. 2

    Click Security & Privacy. It's the house icon on the top row.

  3. How to Check if a Port Is Open on Windows or Mac (29)

    3

    Click the Firewall tab. It's near the top-center part of the window.

    • If you see the message "Firewall:On" near the top of the tab, this means your firewall is active.
    • If the firewall is not active but you want it to be, click the padlock icon at the bottom-left part of the window, enter your administrator password, and then click Turn On Firewall.
  4. How to Check if a Port Is Open on Windows or Mac (30)

    4

    Click Firewall Options. This opens your settings, including a list of apps and services set to either allow or disallow incoming connections.[9]

    • If an app or service has a green dot and the text "Allow incoming connections," that means its port is open.
    • If you see a red dot that says "Block incoming connections," the port is closed.
    • You can toggle whether a port is allowed or not allowed by clicking the double-arrow icon next to the app's current status, and choosing an option.
  5. Advertisem*nt

Expert Q&A

Search

Add New Question

  • Question

    How do I check if a port is open Windows 10?

    Luigi Oppido
    Computer & Tech Specialist

    Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years.

    Luigi Oppido

    Computer & Tech Specialist

    Expert Answer

    An easy way to do this is to go to canyouseeme.org and type in the port number into the webpage. It'll be able to tell you whether or not the port is open.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 10Helpful 0

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

      Advertisem*nt

      Video

      Tips

      Submit a Tip

      All tip submissions are carefully reviewed before being published

      Submit

      Thanks for submitting a tip for review!

      You Might Also Like

      How to Open Port 25 (SMTP) on Any Version of Windows
      How to Open a Port to Allow Connections Through Your FirewallHow toOpen Your Port 80 Behind a FirewallHow toFind the MAC Address of Your ComputerHow toConnect Two Computers3 Ways to Change a Computer's Mac Address in WindowsHow toConnect One Router to Another to Expand a NetworkHow toGet a MAC Address from an IP RemotelyHow to Join a Domain on a Windows Computer or MacHow toCreate a Local Area Network (LAN)How to Forward a Port on Any Router: Easy GuideHow toTrack a PersonHow to Flush DNS (Clear the Cache) in All Major Operating Systems

      Advertisem*nt

      References

      1. https://www.wintips.org/how-to-enable-telnet-client-in-windows-10/
      2. https://support.microsoft.com/en-us/windows/turn-microsoft-defender-firewall-on-or-off-ec0844f7-aebd-0583-67fe-601ecf5d774f
      3. https://support.microsoft.com/en-us/windows/risks-of-allowing-apps-through-windows-defender-firewall-654559af-3f54-3dcf-349f-71ccd90bcc5c
      4. Luigi Oppido. Computer & Tech Specialist. Expert Interview. 10 June 2020.
      5. https://kb.synology.com/en-us/DSM/tutorial/Whether_TCP_port_is_open_or_closed
      6. Luigi Oppido. Computer & Tech Specialist. Expert Interview. 10 June 2020.
      7. Luigi Oppido. Computer & Tech Specialist. Expert Interview. 10 June 2020.
      8. https://www.maketecheasier.com/configure-mac-firewall-correctly/
      9. https://support.apple.com/guide/mac-help/change-firewall-settings-on-mac-mh11783/mac

      About This Article

      How to Check if a Port Is Open on Windows or Mac (47)

      Co-authored by:

      Luigi Oppido

      Computer & Tech Specialist

      This article was co-authored by Luigi Oppido and by wikiHow staff writer, Nicole Levine, MFA. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. This article has been viewed 766,036 times.

      How helpful is this?

      Co-authors: 14

      Updated: March 12, 2024

      Views:766,036

      Categories: Computer Networking

      In other languages

      Portuguese

      Thai

      Chinese

      Turkish

      Hindi

      Dutch

      German

      Arabic

      French

      Korean

      Spanish

      Indonesian

      • Print
      • Send fan mail to authors

      Thanks to all authors for creating a page that has been read 766,036 times.

      Is this article up to date?

      Advertisem*nt

      How to Check if a Port Is Open on Windows or Mac (2024)

      FAQs

      How to Check if a Port Is Open on Windows or Mac? ›

      To check if a particular port is open on your Mac, you can use the “lsof” command. For instance, to check whether port 8080 is open, you would type “lsof -i :8080” in the terminal. This will show you a list of all the processes using port 8080. You can also use the “nmap” command to scan for open ports on your Mac.

      How do you check if a port is open on a Mac? ›

      To check if a particular port is open on your Mac, you can use the “lsof” command. For instance, to check whether port 8080 is open, you would type “lsof -i :8080” in the terminal. This will show you a list of all the processes using port 8080. You can also use the “nmap” command to scan for open ports on your Mac.

      How to check if a port is open or not in Windows? ›

      On a Windows computer

      Press the Windows key + R, then type "cmd.exe" and click OK. Enter "telnet + IP address or hostname + port number" (e.g., telnet www.example.com 1723 or telnet 10.17. xxx. xxx 5000) to run the telnet command in Command Prompt and test the TCP port status.

      How to check if port 8080 is open in Mac? ›

      macOS: Open Terminal: Navigate to the Applications/Utilities folder or use Spotlight Search to find it. In the Terminal, enter the following command: lsof -i :8080 .

      How to check if the 8080 port is used in Windows? ›

      Run the "cmd" command. Type "netstat -ano" followed by ENTER. optionally, you can also use "|" (pipe) followed by the "find" command to define the result more precisely, e.g. to search for port "8080": netstat -ano | find "8080".

      How do I check if port 443 is open? ›

      Check if port 443 is open:

      On Windows: open the Command Prompt on your Windows machine > type telnet <IP address or domain name> 443 and press Enter. If the command returns “Connected to <IP address or domain name>”, then port 443 is open.

      How to check if a port is being used? ›

      Use netstat -anob to list all established and listening ports. The command "netstat -anob" shows all in-use ports and the binary (application) which use them.

      How do I ping a port? ›

      Pinging a port in Windows 10 is a straightforward process. All you need to do is open the Command Prompt window, type in the ping command followed by the IP address or domain name and the port number, and hit enter. The ping results will then be displayed in the Command Prompt window.

      How to check ports on Mac using netstat? ›

      Double-click Terminal. In the new Terminal window, type netstat and press Return (or Enter) to execute the command. A huge amount of text will begin scrolling on your screen. If you don't use any of the available flags (see below), netstat reports the active network connections on your Mac.

      How do you check if a port is reached in Windows? ›

      If you would like to test ports on your computer, use the Windows command prompt and the CMD command netstat -ano. Windows will show you all currently existing network connections via open ports or open, listening ports that are currently not establishing a connection.

      How do I check if a port is open on my Mac terminal? ›

      Easy Ways to Identify Open Ports

      Open a command prompt and type “ipconfig.” Use the IP address and port number to locate an open port. For Mac devices, open a Terminal window. Type “netsat -nr | grep default” into the program. Then, type “nc -vs” + your IP + port number to locate.

      How to check what's running on port mac? ›

      Find out what is running on a particular port on macOS

      You can find out what is running on a specific port by running the command lsof -i with the port number, :<PortNumber> .

      How do I know if my container port is open? ›

      Using ss. Another useful command for listing open sockets inside the Docker container is the ss command. In fact, the ss command is an alternative to netstat and provides more detailed information about socket connections. The output shows the listening TCP sockets and their corresponding local addresses and ports.

      How to check if TCP port 3389 is open? ›

      Below is a quick way to test and see whether or not the correct port (3389) is open: From your local computer, open a browser and navigate to http://portquiz.net:80/. Note: This will test the internet connection on port 80. This port is used for standard internet communication.

      How to check port using netstat on Mac? ›

      Double-click Terminal. In the new Terminal window, type netstat and press Return (or Enter) to execute the command. A huge amount of text will begin scrolling on your screen. If you don't use any of the available flags (see below), netstat reports the active network connections on your Mac.

      Top Articles
      HSA Account - What You Need To Know About Health Savings Accounts
      25 Ways to Save Money Building Your Dream Home - Good Financial Cents®
      Navicent Human Resources Phone Number
      Ffxiv Act Plugin
      AllHere, praised for creating LAUSD’s $6M AI chatbot, files for bankruptcy
      Pet For Sale Craigslist
      Chelsea player who left on a free is now worth more than Palmer & Caicedo
      GAY (and stinky) DOGS [scat] by Entomb
      Cinepacks.store
      Music Archives | Hotel Grand Bach - Hotel GrandBach
      270 West Michigan residents receive expert driver’s license restoration advice at last major Road to Restoration Clinic of the year
      Sitcoms Online Message Board
      Walgreens On Nacogdoches And O'connor
      7440 Dean Martin Dr Suite 204 Directions
      charleston cars & trucks - by owner - craigslist
      Craigslist Farm And Garden Tallahassee Florida
      Colorado mayor, police respond to Trump's claims that Venezuelan gang is 'taking over'
      Video shows two planes collide while taxiing at airport | CNN
      Itziar Atienza Bikini
      Craigslist Mt Pleasant Sc
      Publix Super Market At Rainbow Square Shopping Center Dunnellon Photos
      Amazing deals for Abercrombie & Fitch Co. on Goodshop!
      Happy Homebodies Breakup
      Fleet Farm Brainerd Mn Hours
      Divina Rapsing
      Roanoke Skipthegames Com
      Culver's.comsummerofsmiles
      Speechwire Login
      Spirited Showtimes Near Marcus Twin Creek Cinema
      James Ingram | Biography, Songs, Hits, & Cause of Death
      Abga Gestation Calculator
      Ellafeet.official
      6143 N Fresno St
      Panchitos Harlingen Tx
      THE 10 BEST Yoga Retreats in Konstanz for September 2024
      Kgirls Seattle
      Plead Irksomely Crossword
      Spn-523318
      Craigslist Free Manhattan
      Final Fantasy 7 Remake Nexus
      Silive Obituary
      Post A Bid Monticello Mn
      Ehome America Coupon Code
      [Teen Titans] Starfire In Heat - Chapter 1 - Umbrelloid - Teen Titans
      Gary Vandenheuvel Net Worth
      Lawrence E. Moon Funeral Home | Flint, Michigan
      Mail2World Sign Up
      Goosetown Communications Guilford Ct
      91 East Freeway Accident Today 2022
      8663831604
      Palmyra Authentic Mediterranean Cuisine مطعم أبو سمرة
      Qvc Com Blogs
      Latest Posts
      Article information

      Author: Greg Kuvalis

      Last Updated:

      Views: 5957

      Rating: 4.4 / 5 (75 voted)

      Reviews: 82% of readers found this page helpful

      Author information

      Name: Greg Kuvalis

      Birthday: 1996-12-20

      Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

      Phone: +68218650356656

      Job: IT Representative

      Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

      Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.