Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Install and Use netstat

etstat lists sockets and connections. On recent Ubuntu the recommended tool is ss (from iproute2); both show which ports are open.

Steps

  1. Install net-tools (netstat) if you need it; ss is usually already there:

    sudo apt update
    sudo apt install -y net-tools iproute2
  2. TCP/UDP listeners with netstat:

    sudo netstat -tulpn
  3. Same view with ss (faster on current kernels):

    sudo ss -tulpn
  4. Established connections on a given port:

    sudo ss -tpn sport = :443

Tips

  • Prefer ss in new scripts; netstat remains useful for older tutorials.
  • Combine with lsof when you need the exact binary path that is listening.

ext step

etwork and firewall under your control: Deploy your Cloud VPS.

Related guides