Tag Archives: java.net.SocketException

Error:java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind

The reason for this exception is that the server port is occupied, so the solution is as follows:

1. CMD enters the command line to check whether the port is occupied

Use command: netstat – ANO

C:\Users\admin> netstat -ano

Protocol local address external address status PID

TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING 1256

TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 5500

2. execute tasklist | findstr “5500” command under CMD to query which program is occupied

C:\Users\admin> tasklist|findstr “5500”

javaw.exe 1256 Console 1 81,864 K

Finally, close the javaw. Exe process, the problem is solved