Unrecognized Windows Sockets error:0: Jvm_bind

Source: Internet
Author: User

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!!!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.