To find port numbers in Windows 10, open Command Prompt, type netstat -ano, and press Enter. The Local Address column shows each port after the colon, such as :8080. The PID column tells you which program is using it, which you can look up in Task Manager.
Applies to: Windows 10. Windows 10 reached end of support on October 14, 2025, and only PCs enrolled in Extended Security Updates still get security fixes, through October 12, 2027.
See the ports in use with netstat
- Open Command Prompt. If you’re not sure where it is, opening Command Prompt in Windows 10 walks through it.
- Type
netstat -anoand press Enter. - Read the list:
- Local Address: your PC’s address and port.
0.0.0.0:8080means port 8080 on all network connections. - Foreign Address: the other computer and its port, for active connections.
- State: LISTENING means a program is waiting for connections on that port. ESTABLISHED means a connection is open. To check from another PC whether that port accepts connections, use Telnet in Windows 10.
- PID: the process ID of the program using the port.

To see the program name directly, open Command Prompt as an administrator and run netstat -abno instead. It can take a minute to finish.
Match the PID to a program
- Open Task Manager with Ctrl + Shift + Esc (other ways are in opening Task Manager in Windows 10).
- Select the Details tab.
- Find the number in the PID column.

Find one port or IP address
Add findstr to filter the list:
- One port:
netstat -ano | findstr :8080 - Only listening ports:
netstat -ano | findstr LISTENING - Connections to a certain IP address:
netstat -ano | findstr 203.0.113.5
The number after the colon in each matching line is the port.
Use PowerShell
To list listening ports in PowerShell, run:
Get-NetTCPConnection -State Listen | Sort-Object LocalPort
The OwningProcess column is the PID.
More ways to see ports
- UDP ports in PowerShell: run Get-NetUDPEndpoint to list UDP ports, which Get-NetTCPConnection doesn’t show.
- Resource Monitor: press Windows logo key + R, type resmon, and press Enter. On the Network tab, Listening Ports shows each port, its program, and whether the firewall allows it.
Common problems
- “The requested operation requires elevation.” The -b option needs an administrator Command Prompt. Right-click Command Prompt and select Run as administrator.
- The PID is 4. That’s the System process. Windows services such as file sharing and the built-in web server driver use it, so the port belongs to Windows.
- An app reports that its port is already in use. Find the port with netstat -ano | findstr :port, look up the PID in Task Manager, and close that program, or change the port in your app’s settings. Checking for a program on port 80 is also the first fix when Apache refuses to start while you install WordPress in Windows 10.
- You want to test a port on another computer. In PowerShell, run Test-NetConnection -ComputerName server -Port 443, using the computer’s name and port. TcpTestSucceeded : True means it’s reachable.
Frequently asked questions
What’s my IP address?
Finding your IP address in Windows 10 covers that.
How do I open a port that’s blocked?
The steps are in opening a port in Windows 10.
What are common port numbers?
Some well-known ones are 80 (HTTP), 443 (HTTPS), and 3389 (Remote Desktop). Apps often use their own numbers, so check the app’s instructions. Port 80 in your list often means a web server is running, for example if you enabled IIS in Windows 10 for local testing. A common reason to run this check is a web server that refuses to start, as covered in the port 80 troubleshooting for installing Apache on Windows 10.
What’s the difference between TCP and UDP ports?
TCP connections check that every piece of data arrives, so web browsing, email, and file transfers use them. UDP is faster but skips those checks, so games, video calls, and DNS often use it. The same port number can be used separately by TCP and UDP.
Is it safe to have open ports?
Ports that Windows and your apps open are normal. What matters is whether they’re reachable from the internet. Your router and Windows Firewall block most outside connections unless you set up port forwarding. For example, port 21 shows as LISTENING after you enable FTP in Windows 10, which is expected while the FTP site is running.
Can I see which ports a website uses?
Websites almost always use 443 for HTTPS. In netstat, connections to a website show the site’s address with :443 in the Foreign Address column.
Looking for serial ports like COM3 instead? Those show up in checking COM ports in Windows 10. On Windows 11, read opening ports on Windows 11.
Full command details are in Microsoft’s references for netstat and Get-NetTCPConnection.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Every guide is checked on his own Windows 11, Windows 10, Mac, iPhone and iPad before it goes up.