Netstat command to know the process and ports in use..
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.
netstat -aon | find “8080” list the PID also..
taskkill /F /PID 12345