「netstat」コマンドで状態を確認出来ます。
「netstat -a」にて、「TCP」だけでなく「UDP」の状態も表示できます。
(Windows、UNIX共に使用可能)
C:\ >netstat -a Active Connections Proto Local Address Foreign Address State ...
# netstat -a Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State ... Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path ...