Unable to start Confluence due to java.net.BindException: Cannot assign requested address

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

  • Unable to start/shutdown Confluence. The following appears in the atlassian-confluence.log:

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Dec 20, 2011 12:25:27 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[5060]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353) at java.net.ServerSocket.bind(ServerSocket.java:336) at java.net.ServerSocket.<init>(ServerSocket.java:202) at org.apache.catalina.core.StandardServer.await(StandardServer.java:406) at org.apache.catalina.startup.Catalina.await(Catalina.java:676) at org.apache.catalina.startup.Catalina.start(Catalina.java:628) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  • Pinging localhost with the terminal or command prompt results in dropped packets (unable to ping localhost)

    1 ping localhost

Cause

This is normally caused by the fact that the OS is unable to resolve localhost , which is required to shutdown and startup Confluence, due to a missing entry in your OS' hosts file.

Resolution

For Windows:

  1. Navigate to C:\Windows\System32\drivers\etc , and edit the hosts file.

  2. Make sure that this line is uncommented (else, add the line to the bottom of the file):

    1 127.0.0.1 localhost

For Linux:

  1. Edit /etc/hosts

  2. Make sure that this line is uncommented (else, add the line to the top of the file):

    1 127.0.0.1 localhost
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.