Ways to test port connections & ports occupied by Windows services
Test Port Connection
Powershell
Host Port
Test-NetConnection localhost -Port 9010
- OR -
New-Object System.Net.Sockets.TcpClient("localhost", 80)
Find out the port occupied by which application / service
1. Find out the process ID
Netstat -aon | findstr [port]
2. Find the application name by PID
Tasklist | findstr [pid]
No Comments