Checking listening ports tells you whether software is actually waiting for connections. This is useful for game servers, web servers, databases, bots, and RCON tools.

If the service is not listening locally, no firewall rule will make it reachable from outside. Start the application first, then check the port.

  1. Connect to the VPS with SSH.
  2. Use ss to list listening TCP and UDP ports:
    sudo ss -tulpn

    Linux VPS terminal showing listening TCP and UDP ports with processes

  3. If netstat is installed, use the memorable -peanut command:
    sudo netstat -peanut
  4. If netstat is missing on Ubuntu or Debian, install it with:
    sudo apt install net-tools
  5. If netstat is missing on AlmaLinux, Rocky Linux, Oracle Linux, or CentOS, install it with:
    sudo dnf install net-tools

 

What to check

CheckWhy it matters
TCP or UDPThe firewall rule must match the protocol the service uses.
Local address127.0.0.1 means local-only; 0.0.0.0 usually means all IPv4 addresses.
Process nameConfirms the expected service owns the port.
FirewallThe service can listen locally but still be blocked from the internet.

For firewall rules, use How to open firewall ports on a Linux VPS.

  • 0 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

How to connect to a Linux VPS with SSH

SSH is the normal way to manage a Linux VPS. It gives you a terminal on the server so you can...

How to update packages on a Linux VPS

Keeping packages updated helps patch security issues and keeps server tools compatible. Run...

How to create a sudo user on a Linux VPS

A sudo user lets you manage a Linux VPS without logging in as root for every task. This is safer...

How to secure SSH on a Linux VPS

SSH is the main way to manage a Linux VPS, so it should be secured before the server is used for...

How to check disk usage on a Linux VPS

Disk usage issues can stop updates, backups, logs, databases, and game saves from writing...