Issue
- A newly installed program may fail to launch because it attempts to use a network port that is already in use by another application or service.
- How can current port usage on the host computer be determined quickly?
Product Line
EcoStruxure Building Operation, Satchwell MicroNet, Satchwell BAS & Sigma, TAC INET, TAC I/A Series, TAC Vista, Andover Continuum
Environment
Microsoft Windows
Cause
The program is trying to bind to a port that is already occupied by another process.
Resolution
- Open Command Prompt as Administrator
- Press
Win + X
→ Select Command Prompt (Admin) or Windows Terminal (Admin).
- Press
- Run the following commands:
- View all active TCP connections with associated executables:
Displays protocol, local/remote addresses, connection state, and the executable using the port.netstat -a -n -p tcp -b
- View active TCP connections with Process IDs (PID):
netstat -a -n -p tcp -o
Use Task Manager to match the PID to the corresponding application.
- Check a specific port (e.g., port 80):
Filters output to show only entries using port 80.netstat -a -n -p tcp -o | findstr :80
- View all active TCP connections with associated executables:
Additional Tips
- Use Resource Monitor (
resmon
) for a graphical view of network activity. - Consider using third-party tools like TCPView from Sysinternals for easier port monitoring.