Display Active Connections in Linux
ubuntu server show all tcp connections This post will show you how the netstat command displays active connections in Linux and Ubuntu Server. A majority of the time you’ll probably be using this to troubleshoot HTTP connections. Keep it mind that HTTP is a stateless protocol. Each line can represent one client opening multiple sockets to grab different files (css, images, etc) that will hang out for awhile in a timewait state. If that’s the case you could use something like this: watch -n 0.5 “netstat -ano | grep -v unix | grep ESTABLISHED | grep :80” It’s a useful tool for checking your network configuration