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

Try changing the port in core-site.xml from 9000 to 9001 as it seems port 9000 doesn't work.

,

Its saying that a Java application is trying to connect on port but that port is already being used by some other process and JVM Bind to that particular port is failed.

Solutions on the web

via Stack Overflow by Evaldas Jankauskas
, 10 months ago
via Stack Overflow by King David
, 1 month ago
via GitHub by renqHIT
, 11 months ago
via Google Groups by Puja Gupta, 1 year ago
Address already in use
via Stack Overflow by Raghu
, 4 months ago
java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:463)
at sun.nio.ch.Net.bind(Net.java:455)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
at com.l2jfrozen.netcore.SelectorThread.openServerSocket(SelectorThread.java:122)
at com.l2jfrozen.gameserver.GameServer.main(GameServer.java:723)

Users with the same issue

63 times, 1 day ago
2 times, 2 days ago
2 times, 2 days ago
Once, 3 days ago
11 times, 4 days ago

Write tip

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