technet.microsoft.com says that:
Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, IP routing table, IPv4 statistics (for IP, ICMP, TCP and UDP protocols) and IPv6 statistics (for IPv6, ICMPv6, TCP over IPv6). and UDP over IPv6). When used without parameters, netstat displays active TCP connections.
This way you can find which addresses and ports are being used and tapped. for example, you want to start the Tomcat server through port 8080 . but he used. so you can run:
netstat -ano | find "8080"
the output would be something like this:
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1185 TCP [::]:8080 [::]:0 LISTENING 1185
This says that process number 1185 uses this port. If you need to use this port, you can close the application using this port and start your server on it using this command:
taskkill /F /PID 1185
Kenji
source share