Unrecognized Windows Sockets error:0: Jvm_bind

Source: Internet
Author: User

1. Questions

When you start Tomcat through eclipse, you throw an exception java.net.SocketException:Unrecognized Windows Sockets error:0: Jvm_bind. The reason for this exception is that the server port is occupied

The solutions include the following two kinds of methods:

One: Change the port number of the server;
Second: Close the process that occupies the port currently occupied

2. Change the server port number

To the Server.xml file under the Conf folder under the Tomcat directory, locate
<connector port= "8080" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/>
Modify the port to
<connector port= "8088" protocol= "ajp/1.3" redirectport= "8443"/>

3. Close the process that currently occupies the port

1) First enter the command line to see if the port is occupied
Use command: Netstat-ano


The port of my server is 443
This port has been occupied by a process with a PID of 3432

2) End the PID 3432 process through the Task Manager or the Taskkill program.

Unrecognized Windows Sockets error:0: Jvm_bind

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.