How to Find What Port I'm Using

You can find which ports you are using with specific programs on a computer by examining the computer's in-use ports through the Command Prompt interface. Identifying which ports a program is using is helpful when trying to allow or restrict that particular program's access across a network. If you know the port a program is using, you can make certain that program is blocked or not blocked by any other computer or gateway on the path to its destination, like another computer or the Internet.

...
The programs on your computer use different ports to access the Internet.

Video of the Day

Step

Open the Command Prompt window by clicking on the "Start Menu," entering "Command" into the "Search Bar" and pressing "Enter."

Step

Type "Netstat -ano" into the new window and press "Enter" to bring up a list of all ports currently in use.

Step

Identify what program or programs are using a particular port from the "PID," or "Port ID," list by typing "tasklist /svc /FI "PID eq 'PID#'" and pressing "Enter." Enter the PID number in the PID# spot, excluding the quotation marks.

Step

Look under "Image Name" to identify the program or programs that are using the port and look under "Services" to determine what actions the corresponding programs are using through the port.

Step

Repeat the process from Step 3 for each Port ID until you have found the port that you are using with a particular program.

Show Comments