Use netstat command to view active TCP connections on Machine.
Determining Network Connections
The netstat command examines many of the kernel's tables that deal with network connections. One of its most useful applications is to list active network connections involving your machine. The netstat command will list active TCP connections and show active “UNIX domain” connections. UNIX domain connections are internal to one machine; they are a form of interprocess communication. For the purposes of this course, we will concentrate on TCP connections.
View the diagram below to see an example of using netstat to view active TCP connections.
Number of Bytes
On Solaris, to view a report on TCP connections, use the netstat -P tcp command.