Unrecognized Windows Sockets error:0: Jvm_bind
"Reprint" is very strange today, when running the server side, often encountered this exception:
java.net.SocketException:Unrecognized Windows Sockets error:0: Jvm_bindat java.net.PlainSocketImpl.socketBind ( Native Method) at Java.net.PlainSocketImpl.bind (plainsocketimpl.java:359) at Java.net.ServerSocket.bind ( serversocket.java:319) at java.net.serversocket.<init> (serversocket.java:185) at java.net.ServerSocket.< Init> (serversocket.java:97) at server. Server.startservice (server.java:50) at Server. Server.<init> (server.java:44) at Server. Server.main (server.java:38)
Google for a long time, found a variety of strange anomalies occurred. But I just didn't find the solution in my socket on this side. Do not know how the matter, suddenly thought should be the port problem, must be the port is occupied. But why is this anomaly unstable? Why sometimes come out, sometimes do not come out? Yesterday was the case, and so it is today. So Google, how to look at the port in Windows how to check the situation: on the command line: Netstat-aon|findstr "5678" (this side of the 5678 is the port I need to open the program), sure enough, the port is really occupied:
This is the number No. 3064 process listening to my port. Strange, what is this program in funny?
So there is input: Tasklist|fidstr "3064", to find out what application is listening to my this port. I was suddenly stunned:
Rely on, unexpectedly is thunder, suddenly remembered, I suddenly think of the afternoon to the development of the trouble to download the end, and then opened the Thunder. Unexpectedly, Thunderbolt is also used is 5678 port, I decisively turned off the Thunderbolt, and then re-run my server-side program, finally can!! Really a people laugh and cry the result Ah!!!