Monitoring, Management & Location Tracking

How to check what ports are being used by processes on the server?

netstat –lnput

In this example HTTP process is listening on port 443 and 80.

[root@huskk mercury]# netstat -lnput
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN 2475/rpc.statd
tcp 0 0 127.0.0.1:8558 0.0.0.0:* LISTEN 552/perl
tcp 0 0 127.0.0.1:9999 0.0.0.0:* LISTEN 553/Daemon::TupleSp
tcp 0 0 127.0.0.1:8888 0.0.0.0:* LISTEN 557/Daemon::Persist
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 11878/postmaster
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2713/master
tcp 0 0 :::80 :::* LISTEN 658/httpd
tcp 0 0 :::22 :::* LISTEN 32476/sshd
tcp 0 0 :::443 :::* LISTEN 658/httpd
udp 0 0 0.0.0.0:32768 0.0.0.0:* 2475/rpc.statd
udp 0 0 127.0.0.1:8210 0.0.0.0:* 15886/msgHandler
udp 0 0 0.0.0.0:8211 0.0.0.0:* 15886/msgHandler
udp 0 0 0.0.0.0:1812 0.0.0.0:* 616/radiusd
udp 0 0 0.0.0.0:1813 0.0.0.0:* 616/radiusd
udp 0 0 0.0.0.0:162 0.0.0.0:* 647/snmptrapd
udp 0 0 0.0.0.0:955 0.0.0.0:* 2475/rpc.statd
udp 0 0 0.0.0.0:69 0.0.0.0:* 8873/xinetd
udp 0 0 127.0.0.1:8396 0.0.0.0:* 584/Daemon::PAPI
udp 0 0 127.0.0.1:2256 0.0.0.0:* 584/Daemon::PAPI

Version history
Revision #:
1 of 1
Last update:
‎06-24-2014 02:03 PM
Updated by:
 
Labels (1)
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.