> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : Find out which network port a program is using in linux
- URL: https://kudithipudi.org/how-to-find-out-which-network-port-a-program-is-using-in-linux/
- Published: 2011-01-26T18:46:38.000Z
- Updated: 2011-01-26T18:46:38.000Z
- Description: Quick way to figure out, which ports a particular program is using in linux [bash] netstat -plan | grep -i PROGRAM_NAME [/bash] Example : Check which...
- Author: admin
- Tags: HOWTO, Linux, Technology, Uncategorized, #wp, #wp-post, #Import 2026-08-23 02:32

Quick way to figure out, which ports a particular program is using in linux

\[bash\] netstat -plan | grep -i PROGRAM\_NAME \[/bash\]

Example : Check which ports SSH is listening on

\[bash\]

samurai@samurai:\~$ sudo /bin/netstat -plan | grep sshd  
tcp 0 0 0.0.0.0:22 0.0.0.0:\* LISTEN 5257/sshd  
tcp 0 52 123.123.123.123:22 124.124.124.124:32846 ESTABLISHED 3551/sshd: samurai  
tcp6 0 0 :::22 :::\* LISTEN 5257/sshd  
unix 3 \[ \] STREAM CONNECTED 5893 3551/sshd: samurai  
unix 2 \[ \] DGRAM 5849 3551/sshd: samurai

\[/bash\]