java.net.BindException

Address already in use: bind


Samebug tips3

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.

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web4309

Solution icon of coderanch
Address already in use: bind

Solution icon of github
via GitHub by Cashe18
, 11 months ago
Address already in use: bind

Solution icon of github
via GitHub by Vshuds
, 11 months ago
Address already in use: bind

Solution icon of github
via GitHub by Valdo197
, 7 months ago
Address already in use: bind

Solution icon of github
Address already in use: bind

Solution icon of github
via GitHub by lukaszx0
, 7 months ago
Address already in use: bind

Solution icon of github
via GitHub by ezekel
, 1 year ago
Address already in use: bind

Solution icon of googlegroups
via Google Groups by Zolf, 1 year ago
Address already in use: bind

Solution icon of googlegroups
via Google Groups by Muthukumaran Kothandaraman, 1 year ago
Address already in use: bind

Solution icon of googlegroups
via Google Groups by Félix Roberto Aballí Morell, 2 months ago
Address already in use: bind

Stack trace

  • java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method)[na:1.8.0_101] at sun.nio.ch.Net.bind(Unknown Source)[na:1.8.0_101] at sun.nio.ch.Net.bind(Unknown Source)[na:1.8.0_101] at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)[na:1.8.0_101] at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)[na:1.8.0_101] at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:340)[DiscordSoundboard.jar!/:1.4.8] at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:765)[DiscordSoundboard.jar!/:1.4.8] at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:473)[DiscordSoundboard.jar!/:1.4.8] at org.apache.catalina.connector.Connector.startInternal(Connector.java:986)[DiscordSoundboard.jar!/:1.4.8] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)[DiscordSoundboard.jar!/:1.4.8] at org.apache.catalina.core.StandardService.addConnector(StandardService.java:239)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(TomcatEmbeddedServletContainer.java:194)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:151)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:293)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:141)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)[DiscordSoundboard.jar!/:1.4.8] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)[DiscordSoundboard.jar!/:1.4.8] at net.dirtydeeds.discordsoundboard.MainController.main(MainController.java:20)[DiscordSoundboard.jar!/:1.4.8] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source)[na:1.8.0_101] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)[DiscordSoundboard.jar!/:1.4.8] at java.lang.Thread.run(Unknown Source)[na:1.8.0_101]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 6 days ago
10 times, 4 weeks ago
3 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Once, 3 months ago
149 more bugmates