How to Check If a Port Is Open in Windows 10 (2024)

24

24 people found this article helpful

You can use a Windows command or third-party utilities

By

Ryan Dube

How to Check If a Port Is Open in Windows 10 (1)

Writer

  • University of Maine

Ryan Dube is a freelance contributor to Lifewire and former Managing Editor of MakeUseOf, senior IT Analyst, and an automation engineer.

Updated on May 9, 2021

Reviewed by

Ryan Perian

How to Check If a Port Is Open in Windows 10 (2)

Reviewed byRyan Perian

  • Western Governors University

Ryan Perian is a certified IT specialist who holds numerous IT certifications and has 12+ years' experience working in the IT industry support and management positions.

What to Know

  • Easiest: Open the Start menu > type command > right-click the Command Prompt app > Run as administrator.
  • Typenetstat -ab> pressEnter >look for items in the "LISTENING" state.
  • The alternative is to use a third-party app: We like TCPView, Nirsoft CurrPorts, and PortQry Command Line Port Scanner.

This article outlines how to check for open ports in Windows 10, which is necessary if an application cannot access the internet or you want to block an application.

How to Check If a Port Is Open With Netstat

The easiest way to check if a port is open on Windows 10 is by using the Netstat command. 'Netstat' is short for network statistics. It will show you what ports each internet protocol (like TCP, FTP, etc.) is currently using.

The command has many parameters, but the ones you'll need to use to check if a port is open are (a), which provides the active ports, and (b), which will tell you the name of the processes using those ports.

  1. Select the Start menu and type "command." Right-click on the Command Prompt app and select Run as administrator.

    How to Check If a Port Is Open in Windows 10 (3)

  2. Type netstat -ab and press Enter. You'll see a long list of results, depending on what's currently connecting to the network. You'll see a list of running processes. The open port numbers will be after the last colon on the local IP address (the one on the left).

    How to Check If a Port Is Open in Windows 10 (4)

  3. Look for the items on the list with a state of "LISTENING." These are the processes that are communicating via one of the currently opened ports.

    How to Check If a Port Is Open in Windows 10 (5)

  4. If you want to know the program's name that has a specific port open, then type netstat -aon and press Enter. This command will show the protocol the app is using, the local and remote IP addresses, and most importantly, the PID of the application using that port (the number on the far right). Remember to look for the LISTENING status.

    How to Check If a Port Is Open in Windows 10 (6)

  5. To find the application related to that PID, right-click the task manager and select Task Manager. Select the Details tab. Look in the PID field for the PID you noted from the command prompt screen.

    How to Check If a Port Is Open in Windows 10 (7)

How to Check If a Port Is Working Using Third-Party Apps

If you don't want to use the command prompt to check for open ports, there are very easy-to-use third-party apps that can help.

TCPView

TCPView is a utility included in Microsoft Sysinternals that shows you a list of all running processes and their associated open ports. This app displays ports opening and closing and packet transfers, all in real-time.

How to Check If a Port Is Open in Windows 10 (8)

Nirsoft CurrPorts

Nirsoft CurrPortsis another utility to see all ports currently being used by applications and services on your system. Just look for thelocal portscolumn to see which of your computer's ports are active.

How to Check If a Port Is Open in Windows 10 (9)

The list also includes ports that are being connected to on the remote end (the server out on the internet).

PortQry Command Line Port Scanner

Install PortQry Command Line Port Scanner for another command-line utility dedicated to scanning your computer for open ports. Once you install it, open Command Prompt in administrator mode. PortQry automatically installs in the C:\PortQryV2 directory, so change the directory of your command prompt to that directory.

How to Check If a Port Is Open in Windows 10 (10)

Type the command portqry.exe -local to see all open TCP and UDP ports for your machine. It'll show you everything you can see with the NetStat command, plus port mappings and how many ports are in each state.

What Is a Port?

Applications running on your computer reach out and get information and data from servers elsewhere on the internet. These applications and the server know how to communicate based on their IP address and the port number.

Think of the IP address as a street address and the port number as the apartment number. If either the server or application attempts to communicate using any other port number, it won't work. Every other door will be "locked" because other ports are closed.

Was this page helpful?

Thanks for letting us know!

Get the Latest Tech News Delivered Every Day

Subscribe

Tell us why!

How to Check If a Port Is Open in Windows 10 (2024)

FAQs

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

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 can I test if a port is open? ›

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 you verify ports 80 and 443 are open? ›

You can use netstat command to list the tcp port, if 443 port is listed there and state is established means 443 is open for outbound communication.

How do I check if ports are busy Windows 10? ›

Checking port usage from Windows
  1. Start Task Manager by pressing Ctrl+Shift+Esc.
  2. Click on the Processes tab and click View then Select Columns...
  3. In the Select Process Page Columns window, click PID (Process Identifier), then click OK.
Oct 11, 2021

How can I tell if port 8080 is open? ›

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.

How do I check if port 8080 is running? ›

Use the Windows netstat command to identify which applications are using port 8080:
  1. Hold down the Windows key and press the R key to open the Run dialog.
  2. Type “cmd” and click OK in the Run dialog.
  3. Verify the Command Prompt opens.
  4. Type “netstat -a -n -o | find "8080"". A list of processes using port 8080 are displayed.
Dec 2, 2022

How can I test port 443? ›

Test with PowerShell
  1. On the Console machine, Open PowerShell Window.
  2. Run the following command to test Test-NetConnection -Port 443 -ComputerName <URL for Console, token file, rescan file download> -InformationLevel Detailed.
Dec 25, 2022

Which command is used to check TCP port 80 is open? ›

Port 80 Availability Check
  1. From the Windows Start menu, select Run.
  2. In the Run dialog box, enter: cmd .
  3. Click OK.
  4. In the command window, enter: netstat -ano.
  5. A list of active connections is displayed. ...
  6. Start Windows Task Manager and select the Processes tab.
Mar 25, 2021

Which command searches for port 80 that are open? ›

netstat command find out what is using port 80

0 0.0. 0.0:80 – Source IP:Port.

How do you check port number is busy or not? ›

You can use "netstat" to check whether a port is available or not. Use the netstat -anp | find "port number" command to find whether a port is occupied by an another process or not. If it is occupied by an another process, it will show the process id of that process.

How do I check if port 25565 is open? ›

After completing port forwarding, go to www.portchecktool.com to check if port 25565 is open. If it is, you will see a “Success!” message.

How do you tell if Windows is blocking a port? ›

Check for Blocked Port using the Command Prompt
  1. Type cmd in the search bar.
  2. Right-click on the Command Prompt and select Run as Administrator.
  3. In the command prompt, type the following command and hit enter. netsh firewall show state.
  4. This will display all the blocked and active port configured in the firewall.
Mar 14, 2022

How do I check if a port is open or forwarded? ›

After you have successfully forwarded your ports, you will want to check to see if they are forwarded correctly. You can use this tool to see if your ports are open correctly: www.portchecktool.com. This tool will check for open ports and see if there are any services responding on that port.

How to check port with netstat? ›

Using Netstat command:
  1. Open a CMD prompt.
  2. Type in the command: netstat -ano -p tcp.
  3. You'll get an output similar to this one.
  4. Look-out for the TCP port in the Local Address list and note the corresponding PID number.

How do I scan an IP address for open ports? ›

To view the TCP/UDP open port state of a remote host, type “portqry.exe –n [hostname/IP]” where [hostname/IP] is replaced with the hostname or IP address of the remote host.

How to check port number in cmd? ›

How to find your port number on Windows
  1. Type “Cmd” in the search box.
  2. Open “Command Prompt”.
  3. Enter the netstat -a command to see your port numbers.
Mar 29, 2022

How can I tell if port 8888 is open? ›

You can check if port 8888 is open on windows platforms with following commands: Locally use netstat command netstat –an|find /i “listening” to check to see which ports are listening. Remotely run telnet command telnet host port to see if the connection is refused, accepted, or timeouts.

Is port 80 and 8080 are same? ›

Port 80 is the default port. It's what gets used when no port is specified. 8080 is Tomcat's default port so as not to interfere with any other web server that may be running. If you are going to run Tomcat as your web server, the port can be changed to 80 so that visitors do not need to specify it.

How do I unblock port 8080? ›

Main steps to open ports:
  1. Locate your router's IP address.
  2. Head over to your router's settings.
  3. Enter your credentials (username and password).
  4. Look around for the Port Forwarding tab.
  5. Open your preferred port—for example, type 8080 to open port 8080.
  6. Save your settings.
Jan 14, 2021

How do I see what ports are open on Windows? ›

Run the Command Prompt as administrator. Type the command: netstat -ab and hit Enter. Wait for the results to load. Port names will be listed next to the local IP address.

What runs on port 80? ›

Port 80 is the port number assigned to commonly used internet communication protocol, Hypertext Transfer Protocol (HTTP). It is the default network port used to send and receive unencrypted web pages.

Is port 443 always open? ›

The answer is no.. To open a port, a process/application should be installed and configured to listen to port 443.. Typically if you are using a web server with https/teamviewer/skype there is possibility to see 443 port is opened..

Can you ping a port? ›

Network devices use ICMP to send error messages and information on whether communication with an IP address is successful or not. ICMP differs from transport protocols as ICMP is not used to exchange data between systems. Ping uses ICMP packets, and ICMP does not use port numbers which means a port can't be pinged.

How do I test my port for exhaustion? ›

If you suspect that the machine is in a state of port exhaustion:
  1. Try making an outbound connection. ...
  2. Open event viewer and under the system logs, look for the events that clearly indicate the current state: ...
  3. Collect a netstat -anob output from the server. ...
  4. Open a command prompt in admin mode and run the below command.
Sep 2, 2022

How can I test my port 80? ›

You can test the connection using the following Linux commands: Enter telnet SERVERNAME 80 . Telnet will simply connect to the 80 host port of the specified host name. If the connection is established via TCP, telnet will respond with the following response: Connected to SERVERNAME.

Why is port 80 and 443 open? ›

HTTPS is secure and is on port 443, while HTTP is unsecured and available on port 80. Information that travels on the port 443 is encrypted using Secure Sockets Layer (SSL) or its new version, Transport Layer Security (TLS) and hence safer.

Which tool is used to detect open network ports? ›

Nmap is one of the most popular open-source port scanning tools available. Nmap provides a number of different port scanning techniques for different scenarios.

What tool can be used to check for open ports on a system? ›

Nmap. Nmap (short for Network Mapper) is one of the most popular free open-source port scanning tools available.

How do I use Nmap in Windows? ›

Nmap on the Windows Command Line

Simply fire up a command prompt and launch nmap . If you installed from the standalone zip file, you need to add the installation folder to the system path manually through system properties. As you can see the familiar Nmap command options appear after running the command.

How do I check if 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.

How can I tell if port 1433 is open? ›

On the local machine, click the Start button and enter “CMD” in the search programs and files field. If the port 1433 is closed, an error will be returned immediately. If the port 1433 is open, you will be able to connect to the MS-SQL server.

What ports are open on my IP? ›

Start up the command prompt. Type ipconfig. Type netstat -a for a list of all port numbers.

How to test port 443 telnet? ›

Telnet
  1. Install Telnet if it is not already installed.
  2. Open the command prompt: Windows: Select Start. Choose Run or Search. ...
  3. Enter the command: telnet <address> <port> The Code42 app uses port 443 and 4287 to connect to authority servers and the Code42 cloud. If you are unsure which port to include, test all. Example:
Oct 20, 2022

How do I know if port 389 is open on Windows? ›

Verify that a device is listening on port 389.
  1. At the command line, enter. netstat -a.
  2. Find a line where the local address is servername:389 and the state is LISTENING.

How to test a port using telnet? ›

Answer
  1. Open a command prompt.
  2. Type in "telnet <IP ADDRESS OF SERVER PC> <PORT>" and press enter.
  3. For example, you would type “telnet 123.45. ...
  4. If a blank screen appears then the port is open, and the test is successful.
  5. If you receive a connecting... message or an error message then something is blocking that port.
Jul 8, 2020

How do I check if port 139 is open? ›

For test the port 139, please try use the IP address of the server, NetBIOS or FQDN. You can use the telnet command or PortQuery tools.

How do I check if port 1443 is open? ›

Simplest way to do that is probably (on the server, in a cmd window) netstat -an | find "1443" and see what you get back. Second, if it's a TCP connection you're looking for, you may be able to telnet <hostname> 1443 and see if you get a connection.

What is the difference between port 1433 and 1434? ›

Specify the ports 1433 and 1434 to which this rule applies inside the Specific local ports area. In this case, 1433 stands for the SQL server, and 1434 for the SQL server browser. 7. In this step, leave the default selection: Allow the connection.

Top Articles
Latest Posts
Article information

Author: Kelle Weber

Last Updated:

Views: 5665

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Kelle Weber

Birthday: 2000-08-05

Address: 6796 Juan Square, Markfort, MN 58988

Phone: +8215934114615

Job: Hospitality Director

Hobby: tabletop games, Foreign language learning, Leather crafting, Horseback riding, Swimming, Knapping, Handball

Introduction: My name is Kelle Weber, I am a magnificent, enchanting, fair, joyous, light, determined, joyous person who loves writing and wants to share my knowledge and understanding with you.