Any free TCP socket monitoring application?

Please can you suggest any free application by which I can monitor the opening/open/closing TCP/IP sockets? Something that can tell me:

  1. Total number of sockets currently (different count for different socket states)
  2. Max till launch
  3. Any graph of socket usage (such as network or CPU graph shown in Windows Task Manager utility)

Can you think of any such application?

EDIT: Sorry about not giving enough details. Any application that can work on Windows OS would be welcomed.


Solution 1:

For Windows,
TCPView from SysinternalsSuite will give you currently open and listening sockets.
It will also allow taking snapshots to text files for further analysis.

In general,
The netstat command will also help (from cmd.exe on windows, shell on unixes)

netstat -an

Solution 2:

try wireshark. It is actually a network protocol analyzer. It can monitor and report tcp traffic.

Solution 3:

aports, tcpview, netstat