When I try to Start the Tomcat Server on default port (8080), I got error Saying “Port 8080 already in use”. Seems to be last time when i ran other application/tomcat was not properly shutdown and port is still in use.
Here is a Quick solution to free up the port in Windows which is already in Use
1. Open Command Prompt
2. Type “netstat -oa” – which will give the list of ports and its Process IDs like below format
netstat -oa
Active Connections
Prot Local Address Foreign Address State PID
TCP abcd02:8080
3.from above list we can get the PID(1234) which is currently using the port 8080(from Local Address)
4. in same command prompt execute below command
taskkill /f /pid 1234
5. Thats it
Now 8080 is free. Start the tomcat and njoy coding….
Post Footer automatically generated by Add Post Footer Plugin for wordpress.