• Register
0 votes
436 views

Problem :

I am getting bellow error when I start my locale instance of Tomcat

the exception was: java.net.bindexception: cannot assign requested address: bind

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

1.Go to C:\Windows\System32\drivers\etc

2.Open hosts file in admin mode

3.Replace local host ip with 127.0.0.1

Example:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
    127.0.0.1       localhost
#   ::1             localhost

4. Save that file and run on server

9 7 4
38,600 points

Related questions

0 votes
1 answer 3 views
3 views
Problem: Need help,any suggestion will be appreciated for this,"Java.net.bindexception cannot assign requested address jvm_bind."
asked Apr 7 sumaiya simi 43.9k points
1 vote
1 answer 2 views
2 views
Problem: I got this error: run: [java] Error creating the server socket. [java] Oct 04, 2012 5:31:38 PM cascadas.ace.AceFactory bootstrap [java] SEVERE: Failed to create world : java.net.BindException: Address already in use: JVM_Bind [java] Java Result: -1 BUILD SUCCESSFUL Total time: 10 secondsHow can I solve it ?
asked 2 days ago Raj Tyagi 14.4k points
1 vote
1 answer 2 views
2 views
Problem: My server softwares gives me this message: Socket.error: [errno 99] cannot assign requested address.
asked 3 days ago PkGuy 23.5k points
1 vote
1 answer 7 views
7 views
Problem: Can someone please help fix this uncaught error : java.net.bindexception: address already in use (bind failed)
asked Mar 25 MUHAMMAD MUNEEB 83k points
1 vote
1 answer 4 views
4 views
Problem: I am unable to find out the solution, Please solve it : java.net.bindexception: address already in use: bind
asked Mar 25 MUHAMMAD MUNEEB 83k points
0 votes
1 answer 17 views
17 views
Do I need to restart my machine? How do I get to the bottom of it? I appreciate any tips or advice.
asked Dec 13, 2020 TeamScript 13.5k points
0 votes
1 answer 65 views
65 views
Problem: I am very new to Spring Boot. At this time I am facing a problem with running my very simple Spring Boot Application. If I try to run my application then below error comes up:  java.net.BindException: Address already ... .embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:52)             at Can someone who knows spring boot help me with this error?
asked Aug 4, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 32 views
32 views
Problem: exception in thread "main" java.net.bindexception: address already in use: jvm_bind
asked Feb 24 Hira 2.2k points
0 votes
1 answer 17 views
17 views
Problem: If I run catalina.bat jpda run I get the below error: Transport error 202 bind failed address already in use
asked Mar 17 ummesalma 29.2k points
1 vote
1 answer 1 view
1 view
Problem: I&rsquo;m getting this error in a tomcat applivation : Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:150) at java.net. ... .read(CoyoteInputStream.java:200) at java.nio.channels.Channels$ReadableByteChannelImpl.read(Channels.java:385)How can I solve it ?
asked 3 days ago Raj Tyagi 14.4k points