Site icon New Generation Enterprise Linux

Stop guessing which process is hogging your ports

Networking & Firewall (Ss/Netstat/Iptables/Nftables/Curl)

Stop guessing which process is hogging your ports

🧩 The Challenge

You know that feeling when you try to bind a service to a port and the system tells you it’s already taken, but then netstat shows absolutely nothing? It’s enough to make you throw your keyboard across the room.

💡 The Fix

Use the ss command with specific flags to pull the curtain back on those hidden sockets. It’s way faster than the old school tools and actually gives you the process ID every single time.

ss -lptn 'sport = :8080'

⚙️ Why It Works

Adding the -p flag forces the kernel to cough up the process name and PID associated with the socket, which is the missing piece of the puzzle netstat often leaves out. The filter at the end cuts through the noise so you aren’t scrolling through pages of unrelated garbage.

🚀 Pro-Tip: Alias this to something like ‘whoisport’ in your bashrc and save yourself the constant lookup.

Linux Tips & Tricks | © ngelinux.com | 9/9/2026

0 0 votes
Article Rating
Exit mobile version