How to Use NETSTAT to Locate TCP Socket Connections
Overview
Locating an application that is using a TCP Socket is vital to troubleshooting a conflict. NETSTAT is a built in Windows tool.
Requirements
- Local Administrator Rights
- Experience with Command Prompt
Using NETSTAT
- Open an elevated Command Prompt
- Run the following command: netstat -ano | find "[socketnumber]"

- The above example shows PID 1952 is listening on TCP socket 1024
- This will return the process ID (PID) of the application using the TCP socket
- Run the following command: tasklist | find "[pid]"

- The above example shows PID 1952 is PDNC.exe
- In conclusion, we now know TCP Socket 1024 is being used by PDNC.exe
Related Articles
Troubleshooting a SQL Server Connection
Overview If you are unable to connect to a SQL database, you can perform what's called a UDL test which uses a built-in SQL Server OLE DB provider to test SQL connections. This is done independent of any software application and is a great ...
Firewall Exceptions for SQL Server
Overview SQL Server uses both TCP and UDP ports for communication. It is necessary to allow these ports through the firewall. TCP Incoming Ports 1433 4022 135 1434 UDP Incoming Ports 1434
How to License eXtremeDNC
Overview The following article explains how to license eXtremeDNC. Requirements Local Administrator Rights Activation Code 1 Activation Code 2 Licensing changing Locate the shortcut to launch your eXtremeDNC application While holding Shift, right ...
How do I disable Network Card Power Saving?
Overview Modern computers utilize power saving features to reduce energy use. This causes issues with network connected devices. We recommend disabling these power saving features. Requirements Local Administrator Rights Disable Power Saving Options ...
How to add a Service Account to a Windows Service
Overview To access network resources, a Windows service requires authentication credentials. This article will guide you on how to add user credentials (Service Account) to a Windows service. Add Credentials to a Windows Service Open "services.msc" ...