What program is using which port?
Posted: 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:
This will show what program is using the port 8080 - in my case it is:
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.
To find out I do a:
Code: Select all
sudo fuser -v 8080/tcpThis 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.