Windows server display current TCP connections

last updated in Categories

Q. I would like to find out all current connections to my windows 2000/2003 server. How do I display current connections?

A. Microsoft Windows networking tools include netstat command. It is use to to displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and IPv6 statistics (for the IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6 protocols). Used without parameters, netstat displays active TCP connections.

Go to command prompt. Click on start > run > Type cmd command. At dos/nt prompt type command following command to display active connections type the following command:
netstat
To Displays all active TCP connections and the TCP and UDP ports on which the computer is listening type the following command:netstat -aTo displays active TCP connections and includes the process ID (PID) for each connection type the following command:netstat -oTo display both the Ethernet statistics and the statistics for all protocols, type the following command:netstat -s -eTo get help on this command:netstat /?

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 0 comments/add one below):