How to find out ports used by applications on Windows? (2024)

This blog shows how to find TCP ports used or reserved by applications on Windows. It is not related to specific SAP applications.

Problem:
An application cannot start, because the port it wants to use, is in use by another application (or components of the operating system).
How can we found out which application uses this port?

Example:

SAP Message Server executable cannot start, because the ports it wants to open is in use by another application.
The ports which should be used in this example are: 3600 and 3900.

Use netstat -anob to list all established and listening ports

The command "netstat -anob" shows all in-use ports and the binary (application) which use them.

Example:

How to find out ports used by applications on Windows? (1)

In this example we see the process msg_server.exe which is listening on ports 3600 and 3900.
Another msg_server.exe which tries to bind these ports, must therefore fail.

Use netstat -anoq to list all bound ports (= reserved ports)

The command "netstat -anoq" additionally shows a list of all ports in "bound" state. Unfortunately, the option "b" for binary cannot be used in conjunction with the "q" parameter.

Example

How to find out ports used by applications on Windows? (2)

To get a nicer list of bound ports, use this PowerShell command line:

Get-NetTCPConnection -State Bound | ForEach-Object {$p = (Get-Process -Id $_.OwningProcess);New-Object -TypeName psobject -Property @{ "LocalPort" = $_.LocalPort; "PID" = $p.Id; "ProcessName" = $p.Name; }} | Format-Table -AutoSize -Property PID, ProcessName, LocalPort

Example:

How to find out ports used by applications on Windows? (3)

In this list we see SAP applications, but also Windows components like Cluster service (clussvc.exe), Cluster Resource Monitor (rhs.exe), Microsoft Management Console (MMC) and other applications.

A bound port can also be in established state (all SAP applications in above example have a related "established" entry.

Port 61493 is in use by Windows services host (svchost), but "netstat -ano" shows no related established port. In this case, the port is "reserved" by the OS for this application.
Summary:
Look for applications / processes which appear in the bound-list, but not in the established-list.

If you want to search for applications that use/reserve a specific port, netstat -ano is not sufficient. You need to look also for ports in "bound" state.

Links:

https://superuser.com/questions/557665/determining-what-process-has-bound-a-port-without-listening-o...

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netstat

How to find out ports used by applications on Windows? (2024)

FAQs

How to find out ports used by applications on Windows? ›

Use netstat -anob to list all established and listening ports. The command "netstat -anob" shows all in-use ports and the binary (application) which use them. Example: In this example we see the process msg_server.exe which is listening on ports 3600 and 3900.

How to check which port is used by which application in Windows? ›

Go to Processes/Services in the Task Manager (for processes, select "Show processes of all users"). "Select View\Columns -> Enable PID (Process ID)". Now you can see which program or service uses which PID and you know what occupies the corresponding port.

How to find out what ports are being used? ›

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 I see what services are running on a specific port in Windows? ›

To list what services are listening* on a particular port on a device in your environment, run the following commands in a Windows Command Line or a Linux Terminal window on the device the port is on: Windows: netstat -ano | findstr [Port Number] Linux: netstat -ano | grep [Port Number]

How do I check port responses in Windows? ›

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

How to check which port is used by which process? ›

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 find out what apps are using port 80 on Windows? ›

If you are experiencing trouble determining what software is using port 80: Run netstat -o from a command prompt. This will output a list of ports and the process ID using the port. In this example, process 4000 is using port 80.

How do I check all open ports in Windows? ›

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 which application is using port 8080? ›

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.
Jun 2, 2023

How do I identify the ports on my computer? ›

Check the physical ports on your computer:

Or within Control Panel open System and Maintenance then Device Manager. Scroll down until you see Universal Serial Bus Controllers and open that. You will see a list of the USB ports installed on your computer.

How do I see what COM ports are in use Windows 10? ›

Step 1: Open the Device Manager. Step 2: From the menu bar, click View. Step 3: Choose “Show hidden devices”. Step 4: From the list of hidden devices, find the Ports (COM & LPT).

How do I find out what ports are not in use Windows? ›

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 all ports on my server? ›

Execute the command "netstat -a" to view a list of all port numbers.

How do I see what ports are being used in Windows? ›

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.
Mar 20, 2024

How do I find out what ports are in use? ›

Use netstat -anob to list all established and listening ports. The command "netstat -anob" shows all in-use ports and the binary (application) which use them.

How do I monitor port usage on Windows? ›

Information
  1. Search Resource Monitor in the Windows Start Menu.
  2. Click on Network tab.
  3. Select the TCP Connections tab.
  4. Order by Local Port.
  5. Check if the correct service (Image) is using the local port.
Mar 3, 2020

What application is using my port? ›

Checking which application is using a port:

Open the command prompt - start → run → cmd or start → All Programs → Accessories → Command Prompt. Type netstat -aon | findstr '[port_number]' . Replace the [port_number] with the actual port number that you want to check and hit enter.

How do I know which serial port is being used in Windows? ›

Open Windows Device Manager. Find "Ports (COM & LPT)" in the list. Expand "Ports (COM & LPT)" to see the names of all serial ports.

Which port can I use for my application? ›

Some common ports used by servers or applications are HTTP (80), HTTPS (443), FTP (21), SSH (22), SMTP (25), DNS (53) and Telnet(23). These ports facilitate communication between multiple devices, allowing them to transfer data across the internet.

Top Articles
Risk of Loss
What type of real estate makes the most money?
Best Pizza Novato
Rainbird Wiring Diagram
Athletic Squad With Poles Crossword
Nieuwe en jong gebruikte campers
Cars For Sale Tampa Fl Craigslist
Call Follower Osrs
Find The Eagle Hunter High To The East
South Bend Tribune Online
De Leerling Watch Online
Caliber Collision Burnsville
Flights To Frankfort Kentucky
Luna Lola: The Moon Wolf book by Park Kara
Aldi Sign In Careers
Dignity Nfuse
Convert 2024.33 Usd
Walgreens San Pedro And Hildebrand
Wausau Obits Legacy
The Ultimate Guide to Extras Casting: Everything You Need to Know - MyCastingFile
Best Transmission Service Margate
Brazos Valley Busted Newspaper
Where to eat: the 50 best restaurants in Freiburg im Breisgau
Roane County Arrests Today
Elbert County Swap Shop
Doctors of Optometry - Westchester Mall | Trusted Eye Doctors in White Plains, NY
R/Airforcerecruits
manhattan cars & trucks - by owner - craigslist
John Deere 44 Snowblower Parts Manual
Kiddie Jungle Parma
Helloid Worthington Login
Red Sox Starting Pitcher Tonight
Unm Hsc Zoom
Tributes flow for Soundgarden singer Chris Cornell as cause of death revealed
Chattanooga Booking Report
Lichen - 1.17.0 - Gemsbok! Antler Windchimes! Shoji Screens!
Kips Sunshine Kwik Lube
AsROck Q1900B ITX und Ramverträglichkeit
Manatee County Recorder Of Deeds
Lyndie Irons And Pat Tenore
56X40X25Cm
Kjccc Sports
3500 Orchard Place
877-552-2666
Pas Bcbs Prefix
Upcoming Live Online Auctions - Online Hunting Auctions
Besoldungstabellen | Niedersächsisches Landesamt für Bezüge und Versorgung (NLBV)
Otter Bustr
Asisn Massage Near Me
4015 Ballinger Rd Martinsville In 46151
All Obituaries | Roberts Funeral Home | Logan OH funeral home and cremation
Latest Posts
Article information

Author: Clemencia Bogisich Ret

Last Updated:

Views: 5984

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Clemencia Bogisich Ret

Birthday: 2001-07-17

Address: Suite 794 53887 Geri Spring, West Cristentown, KY 54855

Phone: +5934435460663

Job: Central Hospitality Director

Hobby: Yoga, Electronics, Rafting, Lockpicking, Inline skating, Puzzles, scrapbook

Introduction: My name is Clemencia Bogisich Ret, I am a super, outstanding, graceful, friendly, vast, comfortable, agreeable person who loves writing and wants to share my knowledge and understanding with you.