Guides

Step-by-step practical fixes for everyday technical problems.
Network Guides

How to Check Listening Ports on Your System

Confirm whether a service is really waiting for incoming connections before you keep troubleshooting the wrong layer.

Before you start

Know the exact port your service is supposed to open before you begin checking.
If the port is not listening locally, do not start with firewall or router troubleshooting first.
If possible, know the expected process name so you can confirm the correct service owns the port.

When this guide is useful

A remote connection to your service fails

Before blaming the network, verify that the local system is actually listening on the expected port.

An application says it started, but clients still cannot connect

The service may have failed to bind the port, started on a different port, or crashed after launch.

A port conflict is suspected

Another process may already be using the port, which prevents the intended service from listening there.

You need to separate service failure from network failure

A local listening check tells you whether the problem starts inside the host itself or outside it.

Step-by-step instructions

1. Check listening ports on Linux with ss

On modern Linux systems, ss is often the fastest and clearest built-in tool for checking listening sockets.

Linux
ss -tulnp
What this shows

It lists listening TCP and UDP sockets along with local address, port, and often the owning process information.

2. Filter Linux listening ports for one target port

If you already know the port you care about, filter the output so the result is easier to read.

Linux
ss -tulnp | grep :8080
Replace the port

Change 8080 to the actual port your service is supposed to be using.

3. Use netstat on Linux if ss is not available

On some systems or older environments, netstat may still be available and useful.

Linux
netstat -tulnp
Why this still matters

Many real servers and older guides still use netstat, so it remains useful to recognize and read.

4. Check listening ports on Windows

On Windows, use netstat from Command Prompt to check whether the expected port is listening.

Windows
netstat -ano
What to inspect

Look for lines showing the target port in a LISTENING state and note the PID shown at the end.

5. Filter Windows output for a specific port

When the output is too long, filter it to one port so you can confirm the listening state faster.

Windows
netstat -ano | findstr :8080
Expected sign

If the service is really listening there, you should see the port appear with the expected state and PID.

6. Match the port to the owning process

Once you have the PID, match it to the real process so you know whether the correct service owns the port.

Windows
tasklist | findstr 1234
Linux
ps -fp 1234
Why this matters

If the wrong process owns the port, your intended service may have failed because the port was already taken.

7. Use the result to choose the next troubleshooting step

If the port is listening correctly, continue with firewall, routing, or external connectivity checks. If the port is not listening, fix the service or bind configuration first.

Key decision point

A missing listening socket means the problem starts inside the host, not out in the network path.

Common mistakes

Troubleshooting the firewall before confirming the port is even listening

If nothing is listening locally, firewall changes do not address the real cause.

Checking the wrong port number

Always confirm the expected service port from the actual application or service configuration first.

Assuming any listening entry means the correct service is working

A port can be listening but owned by the wrong process, which still means your intended service failed.

Not checking the process owner or PID

The listening check is much more useful when you verify exactly which process is responsible for that port.

About this guide

This guide shows how to check listening ports on your own system when a service should be running but remote connections still fail. It focuses on practical checks for Linux and Windows so you can confirm whether the service is actually bound to the expected port, which process owns it, and whether the issue is really inside the application or elsewhere in the network path.

How to follow this guide

  1. Confirm which port your application or service is supposed to use.
  2. Check listening ports locally with ss, netstat, or the Windows equivalent.
  3. Verify which process or PID owns the port.
  4. Compare the listening result with your service configuration.
  5. If the port is not listening, troubleshoot the service first before blaming firewall or routing.

Why use this method?

Many connection problems are misdiagnosed as firewall or DNS issues when the real problem is simply that the service never opened the port at all. Checking listening ports is one of the fastest ways to separate service-level failure from network-level failure.

Frequently Asked Questions

What does a listening port mean?

It means a service or application is actively waiting for incoming connections on that port.

Why should I check listening ports before changing firewall settings?

If the service is not listening locally, opening the firewall will not fix the problem because there is nothing accepting the connection yet.

What is the difference between listening and established?

Listening means the service is waiting for new connections, while established means an active connection is already open.

Why does the wrong process sometimes own the port?

Another service may already be bound to that port, which can block your intended application from starting correctly.