CMD Commands and usage

By | November 28, 2016

Netstat command to know the process and ports in use..

http://www.computerweekly.com/tip/How-to-use-a-netstat-command-in-Windows-to-watch-open-ports

netstat –an 1 | find "3333"

The command will check every second and print the results if a process starts listening on TCP port 3333.

The local address entries beginning 127.0.0.1 are processes listening for connections from the PC itself, not from the Internet or network. If the IP address in this column is your local network IP, then the port is only listening for connections from your local network. The port is listening for connections from the Internet if it displays your online IP address.

 

Windows Kill Process By Port Number

netstat -aon | find “8080” list the PID also..

taskkill /F /PID 12345

Leave a Reply

Your email address will not be published. Required fields are marked *