Listing active TCP and UDP connections with “netstat”

Posted: (EET/GMT+2)

 

If you are working with TCP/IP and UDP socket programming, there's a very nice utility in Windows called "netstat" that can be used to monitor the active network connections and listening ports that are active on the system.

For example, if you are working with sockets from your C# and .NET code, and/or are accessing web resources with, say, HttpClient, the command-line netstat command is very useful.

For instance, by running "netstat -a" allows you to list open connections and ports that different applications are listening on (in other words, the bindings).

Hope this helps!