I can't start tomcat from Intellij IDEA because port 8080 is already in use. It happened when I stopped tomcat from Intellij level by clicking on stop server button. I work on windows 10.
Intellij IDEA - error running 'my_project': Unable to open debugger port (127.0.0.1:50188): java.net.BindException "Address already in use: JVM_Bind"
As we can see from screenshot the port taken is 50188 on 127.0.0.1
So we just need to find PID of the process that wasn't killed in correct way and kill it from cmd level.
C:\Windows\System32>netstat -ano | findstr :50188 TCP 192.168.0.242:50188 126.96.36.199:443 ESTABLISHED 6032 C:\Windows\System32>taskkill /PID 6032 /F SUCCESS: The process with PID 6032 has been terminated.
And tomcat is up and running, screenshot: