find out the port number used by a process linux code example Example: linux check what process is using port $ netstat -ltnp | grep -w ':80'