java.net.BindException: Cannot assign requested address

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

It might be that there's another process connecting to the same port you're trying to use, try to kill it or change the connection port.

,
Expert tip

Change the connection port and ip adress. If you're trying to connect to your server from your own computer, check if you haven't already connected to the server in another instance.

Solutions on the web

via zimbra.org by Unknown author, 1 year ago
via Google Groups by valia, 6 months ago
Address already in use
via ode-user by von Arx, Matthias, 1 year ago
via ode-user by von Arx, Matthias, 1 year ago
via j-trac by nobody
, 1 year ago
Address already in use: bind
via incubator-hama-user by Edward J. Yoon, 1 year ago
java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:202)
at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:251)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:283)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:529)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:241)
at org.mortbay.xml.XmlConfiguration.refObj(XmlConfiguration.java:633)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:249)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:203)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:919)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.Launcher.main(Unknown Source)

Users with the same issue

3 times, 6 months ago
9 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.