What program is using which port?

Tips and Tricks for Networking

Moderator: jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9279
Joined: 14 Mar 2010, 16:34

What program is using which port?

Postby viking60 » 05 Apr 2015, 17:18

I sometimes need to check that certain ports are free aka not occupied by other processes.
To find out I do a:

Code: Select all

sudo fuser -v 8080/tcp

This will show what program is using the port 8080 - in my case it is:

Code: Select all

~/ sudo fuser -v 8080/tcp
                     USER        PID ACCESS COMMAND
8080/tcp:            nobody     2151 F.... monitorix-httpd


Monitorix - so I cannot use this port to share my files etc with others.

If the port is not taken this command will report nothing as in blank.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

Return to “Networking”