The netstat command using the following flags will display the number of active TCP connections on a server.

netstat -n -A inet -t