12
Jul
socket error: java.net.BindException: Address already in use: JVM_Bind
In java if we execute a socket program (which keeps running in JVM), we can use following solution to kill it in Windows OS:
Step 1: On command prompt identify list of processes and port they are running:
——————————————————————————–
netstat -ano
from output of above identify PID of process which is running on 135 port eg.
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 1116
Step 2: Use following command to kill Process with above PID:
————————————————————–
taskkill -pid 135 /f
0 comments