How to see if a port is open on a pc?

Written by william nagel
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to see if a port is open on a pc?
Find out which ports are open on your computer. (Internet image by Stephanie Bandmann from

Applications on your computer connect to the Internet by using ports. Ports help prevent transmitted data from arriving at an incorrect destination and allow computer applications to exchange information directly. Most applications will open ports automatically when they connect to the Internet, but if you want to manually check to see which ports are open on your computer, you can use the built-in "netstat" command to view a list of active ports on your computer.

Skill level:
Moderately Easy

Things you need

  • Active Internet connection

Show MoreHide


  1. 1

    Press "Windows + R" on your keyboard to open the "Run" dialogue. Type "cmd" into the "Run" dialogue and press "OK" to open a Command prompt.

  2. 2

    Type "netstat --a" into the Command prompt and press "Enter." The "netstat" command will run and output a list of information. The "Local Address" column is the column that identifies which ports are active.

  3. 3

    Examine the entries in the "Local Address" column, which displays a series of numbers. The numbers listed before the ":" are parts of your computer's address. The numbers listed after the ":" are the port numbers.

  4. 4

    Search the entries in the "Local Address" column for a specific port number, or browse the list to see which ports are open on your computer. If you suspect that a port should not be open, or if you don't know why a port is open, perform an Internet search to discover whether the connection is the result of a Trojan horse or virus on your computer.

Tips and warnings

  • To automatically refresh the list of open ports, type "netstat --a X" and replace "X" with the number of seconds you want to pass between refreshes.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.