If you wish to debug or track statistics of your network in a Linux environment you can use SSH netstat command. In this article, we will show you the basic usage of the SSH netstat command that you can master on SSH VPS or a Dedicated Server.
Displaying all sockets – TCP and UDP with SSH netstat command
netstat -a
Displaying specific protocols using netstats and SSH
netstat -at # TCP netstat -au # UDP
Displaying all listening ports
netstat -l netstat -lt # TCP listening
Displaying all listening, over TCP and UDP, in numeric and their ports
netstat -tulnp