How to Find Open and Blocked TCP/UDP Ports (2024)

There’s a good chance you’ve happened upon this article because an application you’re trying to run is complaining about a “port” being blocked or you’ve read about how leaving certain “ports” open on your network can be a security problem.

Either way, by the end of this piece you’ll not only know what these ports everyone is going on about are, but how to check your computer to find open or closed ports.

Table of Contents

    How to Find Open and Blocked TCP/UDP Ports (1)

    What Is a Network Port?

    The first thing you should know is that the ports we’re referring to here are virtual. It has nothing to do with the physical network hardware ports on your router, TV, consoles or computers. Ports are simply a way for your network hardware and software to organize information traffic.

    Think of reserved lanes on a road. The sidewalk is for pedestrians. There might be a dedicated bike lane. Carpool vehicles and buses have their own lanes too. Ports serve the same function. One port might be used for receiving emails, while another carries file transfer requests, or website traffic.

    How to Find Open and Blocked TCP/UDP Ports (2)

    There are two common types of ports, which need a brief explanation before we move on to checking which ports on your system are open and which aren’t.

    What Are TCP & UDP Ports?

    The two common types of ports on modern networks are known as TCP and UDP ports. That is Transmission Control Protocol and User Datagram Protocol respectively. So these two port types use different network protocols.

    Which you can think of as distinctive sets of rules for how bits of information should be sent and received. Both port types are built on the fundamental Internet Protocol (IP) that makes the internet and home networks, well, work. However, they are suitable for different applications.

    How to Find Open and Blocked TCP/UDP Ports (3)

    The big difference is that when you send information over UDP, the sender doesn’t first have to establish a connection with the receiver before starting the conversation. It’s a bit like sending a letter. You don’t know if the other person received your message and you have no guarantee that you’ll get any feedback.

    TCP, on the other hand, is more like making a phone call. The receiver has to “pick up” the connection and there’s a back-and-forth flow of information until someone deliberately hangs up.

    UDP messages are generally broadcast over a network to anyone who is listening on the specified UDP port. This makes it perfect for housekeeping type messages that relate to running the network itself. It’s also perfect for voice-over-IP streaming, online video games and streaming broadcasts.

    How to Find Open and Blocked TCP/UDP Ports (4)

    Why? These applications benefit from UDP’s low latency and constant stream of information that doesn’t have to be perfect to be useful. A little corruption in your Skype chat is far less important than low amounts of lag, after all.

    TCP is much more common than UDP and absolutely makes sure that all data is received free from errors. Just about everything that doesn’t need the specific advantages of UDP, uses TCP instead.

    Which Ports Are Usually Open By Default?

    There are a LOT of ports. A port number can be anything from 0 to 65535! That doesn’t mean any application can just pick any port. There are established standards and ranges, which helps us make sense of the noise.

    How to Find Open and Blocked TCP/UDP Ports (5)

    Ports 0-1023 are associated with some of the most important and fundamental network services. This makes sense, since the lower-numbered ports were assigned first. The SMTP protocol for email, for example, is exclusively used by port 25.

    Ports 1024-49151 are known as “registered ports” and are assigned to important common services such as OpenVPN on port 1194 or Microsoft SQL on ports 1433 and 1434.

    The rest of the port numbers are known as “dynamic” or “private” ports. These ports aren’t reserved and anyone can use them on a network to support a particular service. The only problem crops up when two or more services on the same network are using the same port.

    How to Find Open and Blocked TCP/UDP Ports (6)

    While it’s impossible to list every single important port, these common ports are useful to know by heart:

    • 20 – FTP (File Transfer Protocol)
    • 22 – Secure Shell (SSH)
    • 25 – Simple Mail Transfer Protocol (SMTP)
    • 53 – Domain Name System (DNS)
    • 80 – Hypertext Transfer Protocol (HTTP)
    • 110 – Post Office Protocol (POP3)
    • 143 – Internet Message Access Protocol (IMAP)
    • 443 – HTTP Secure (HTTPS)

    Since there are so many thousands of common port numbers, the easiest approach is to remember the ranges. Which will tell you if a given port is reserved or not. Thanks to Google, you can also look up which services use a specific port in no time at all.

    Find Open Ports In Windows

    How to Find Open and Blocked TCP/UDP Ports (7)

    Now that we’ve got all the basic knowledge about TCP and UDP ports out of the way, it’s time to get down to the process of finding which ports are open and in use on your computer.

    The good news is that Windows has a pretty useful command built into it that will show you what ports are currently being used on your computer by various applications and services.

    • The first thing you want to do is open the Start Menu and search for CMD.
    How to Find Open and Blocked TCP/UDP Ports (8)
    • Now, right-click on CMD and Run as Administrator.
    How to Find Open and Blocked TCP/UDP Ports (9)
    • With the Command Prompt open, type:

    Netstat -ab

    How to Find Open and Blocked TCP/UDP Ports (10)
    • Don’t worry about a long list of info scrolling by faster than you can read it. You can simply use CTRL+C and CTRL+V to copy and paste the information into Notepad or any other text editor.
    • The information in brackets is the name of the program that’s using the port. TCP or UDP refers to the protocol being used on that port. The number consists of an IP address and then the port number after the colon.

    Scanning For Blocked Ports

    How to Find Open and Blocked TCP/UDP Ports (11)

    That takes care of finding which ports are being used and by which application, but it doesn’t tell us which ports are being actively blocked by the Windows Firewall.

    • Once again, open the Start Menu and search for CMD.
    • Right-click on CMD and Run as Administrator.
    • With the Command Prompt open, type:

    netsh firewall show state

    How to Find Open and Blocked TCP/UDP Ports (12)

    This is a display of blocked and open ports as per the configuration of your Windows Firewall.

    You’ll see a note about this command being deprecated, but the new command doesn’t show us the information we want. So for now using the ‘show state’ command is still the fastest and easiest way to get port information.

    Just because the Windows Firewall isn’t blocking a port, that doesn’t mean your router or ISP aren’t. So the last thing we want to do is check if any external blocking is happening.

    • Open the Start Menu and search for CMD.
    • Now, right-click on CMD and Run as Administrator.
    • With the Command Prompt open, type:

    netstat -ano | findstr -i SYN_SENT

    How to Find Open and Blocked TCP/UDP Ports (13)

    If you don’t get any hits listed, then nothing is being blocked. If some ports are listed, it means they are being blocked. If a port not blocked by Windows shows up here, you may want to check your router or pop an email to your ISP, if switching to a different port isn’t an option.

    Useful Apps To Map Out Your Port Status

    While the Command Prompt is a good quick and dirty tool, there are more refined third-party applications that can help you get a picture of your port configuration. The two highlighted here are just popular examples.

    SolarWinds Free Port Scanner

    How to Find Open and Blocked TCP/UDP Ports (14)

    SolarWinds requires that you submit your name and details in order to download it, but it’s up to you whether you put your real information into the form or not. We tried several free tools before settling on SolarWinds, but it was the only tool that both worked properly under Windows 10 and had an easy interface.

    It was also the only one not to trigger a false positive virus flag. One of the big problems with port scanning software is that security companies tend to see them as malware. So most users ignore any virus warning that come with such tools. That’s a problem because you can’t tell the difference between a false positive and a real virus in these apps.

    SolarWinds might come with some strings attached, but it actually works as advertised and is easy to use.

    CanYouSeeMe

    How to Find Open and Blocked TCP/UDP Ports (15)

    This is, as you can probably tell, a website service rather than an application. It’s a good first port of call to see if external data can get through your local port or not. It auto-detects your IP address and all you have to do is specify which port to test.

    It will then tell you if the port is blocked or not and you’ll then have to figure out whether the blockage is on the computer, router or at the service provider level.

    Conclusion

    For most users, ports aren’t something you need to worry about. They are managed by your operating system, applications and network hardware.

    When things go wrong however, it’s good to have the tool in hand that let you find open ports to sniff out suspicious activity or figure out where exactly your precious information is hitting a brick wall.

    How to Find Open and Blocked TCP/UDP Ports (2024)

    FAQs

    How to Find Open and Blocked TCP/UDP Ports? ›

    On a Windows computer

    How to check if TCP and UDP ports are open? ›

    How to check UDP port is open or not?
    1. Open a packet sniffer.
    2. Send a User Datagram Protocol (UDP) packet.
    3. After sending the UDP packet, if you receive 'ICMP port unreachable' message, then the UDP port is closed.
    4. If not, then the UDP port is open or something is blocking the ICMP.
    Oct 10, 2018

    How do I unblock TCP and UDP ports? ›

    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 find my TCP and UDP port number? ›

    Type “Cmd” in the search box. Open “Command Prompt.” Enter the netstat -a command to see your port numbers.

    How to check if a port is blocked or not? ›

    Checking Windows Firewall for blocked ports Print
    1. Launch Command Prompt.
    2. Run netstat -a -n.
    3. Check to see if the specific port is listed. - If it is, then it means that the server is listening on that port.

    How do I know if a TCP port is open or closed? ›

    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. If the port is open, only a cursor will show.

    What tool is used to check if UDP port is open? ›

    The tool is a web interface for Nmap, which is called with the proper parameters to provide speed and accuracy. Behind the scenes, Nmap sends UDP packets to each port specified in the parameters. If the target responds with 'ICMP port unreachable', Nmap can be sure that the port is closed.

    How to check open ports using cmd? ›

    To find open ports on a computer and to check what application is using specified port, use the netstat command line: Open the command prompt (Start > Run > cmd) and use netstat -ano | find /i "<port_number>". It will show you all processes that use the specified port. Notice the PID (process id) in the right column.

    How do I check the status of a TCP port? ›

    Press the 'windows' key and type 'cmd'. Press “Command Prompt”. Step 3: On the command prompt, type the command “telnet + IP address or hostname + port number” and check the status of the provided TCP port. Step 4: If only the blinking cursor is visible, then the port is open.

    How do I check UDP ports on Windows 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.

    How do you check if a port is open or not online? ›

    You can simply leverage our tool. Select the port type “custom ports” and type “443,80” in the port section. Click the “Check” button to let our port scanner run and check which port is open or closed.

    How do I unblock a blocked port? ›

    How to open a port on the firewall
    1. Click on Start then on Control Panel.
    2. Click on Windows Firewall and then click on Advanced Settings.
    3. Right click on Inbound Rules then on New Rule:
    4. Select Port and click on Next:
    5. Enter a specific local port (e.g. 8080) and click on Next:
    6. Click on Next:
    7. Name the rule and click on Finish:
    Jun 16, 2023

    How to check which port is blocked by ISP? ›

    Run a server listening on whatever port you're interested in, forward that port (in your router) to your device, then go to a port scanner on the internet and give it permission to scan your external IP address for open ports. If the port is open, it's not blocked.

    How do you check if your ports are 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 to check TCP port open using cmd? ›

    To find open ports on a computer and to check what application is using specified port, use the netstat command line: Open the command prompt (Start > Run > cmd) and use netstat -ano | find /i "<port_number>". It will show you all processes that use the specified port. Notice the PID (process id) in the right column.

    How to check UDP port is open using Nmap? ›

    Fortunately, Nmap can help inventory UDP ports. UDP scan is activated with the -sU option. It can be combined with a TCP scan type such as SYN scan ( -sS ) to check both protocols during the same run. UDP scan works by sending a UDP packet to every targeted port.

    Can tell you about the status of TCP or UDP connections? ›

    The netstat command generates displays that show network status and protocol statistics. You can display the status of TCP and UDP endpoints in table format, routing table information, and interface information.

    Top Articles
    Convert 4 BNB to USD - Binance Coin to US Dollar Converter | CoinCodex
    Gemini Review 2024: Pros, Cons and How It Compares - NerdWallet
    Katie Pavlich Bikini Photos
    Gamevault Agent
    Pieology Nutrition Calculator Mobile
    Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
    Hendersonville (Tennessee) – Travel guide at Wikivoyage
    Doby's Funeral Home Obituaries
    Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
    Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
    Things To Do In Atlanta Tomorrow Night
    Non Sequitur
    Crossword Nexus Solver
    How To Cut Eelgrass Grounded
    Pac Man Deviantart
    Alexander Funeral Home Gallatin Obituaries
    Craigslist In Flagstaff
    Shasta County Most Wanted 2022
    Energy Healing Conference Utah
    Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
    Aaa Saugus Ma Appointment
    Geometry Review Quiz 5 Answer Key
    Icivics The Electoral Process Answer Key
    Allybearloves
    Bible Gateway passage: Revelation 3 - New Living Translation
    Yisd Home Access Center
    Home
    Shadbase Get Out Of Jail
    Gina Wilson Angle Addition Postulate
    Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
    Walmart Pharmacy Near Me Open
    Marquette Gas Prices
    A Christmas Horse - Alison Senxation
    Ou Football Brainiacs
    Access a Shared Resource | Computing for Arts + Sciences
    Vera Bradley Factory Outlet Sunbury Products
    Pixel Combat Unblocked
    Cvs Sport Physicals
    Mercedes W204 Belt Diagram
    'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
    Teenbeautyfitness
    Where Can I Cash A Huntington National Bank Check
    Facebook Marketplace Marrero La
    Nobodyhome.tv Reddit
    Topos De Bolos Engraçados
    Sand Castle Parents Guide
    Gregory (Five Nights at Freddy's)
    Grand Valley State University Library Hours
    Holzer Athena Portal
    Hello – Cornerstone Chapel
    Stoughton Commuter Rail Schedule
    Selly Medaline
    Latest Posts
    Article information

    Author: Nathanial Hackett

    Last Updated:

    Views: 6291

    Rating: 4.1 / 5 (72 voted)

    Reviews: 87% of readers found this page helpful

    Author information

    Name: Nathanial Hackett

    Birthday: 1997-10-09

    Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

    Phone: +9752624861224

    Job: Forward Technology Assistant

    Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

    Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.