Here is one of the most popular commands for troubleshooting network or specific application problems on Linux
sudo netstat -tunlp
-t– Display TCP ports.
-u– Display UDP ports.
-n– Display numerical addresses instead of resolving hosts.
-l– Display only listening ports.
-p– Display the program name / PID owning the socket