java.net.BindException

Address already in use**

Samebug tips3

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.


rafaelrafael

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.


rafaelrafael

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

Solutions on the web912

  • via GitHub by wilkinsona
    ,
  • via GitHub by zhoushifeng8
    ,
  • Stack trace

    • java.net.BindException: Address already in use** at sun.nio.ch.Net.bind0(Native Method)[na:1.8.0_101] at sun.nio.ch.Net.bind(Net.java:433)[na:1.8.0_101] at sun.nio.ch.Net.bind(Net.java:425)[na:1.8.0_101] at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)[na:1.8.0_101] at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)[na:1.8.0_101] at org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:190)[xnio-nio-3.3.6.Final.jar!/:3.3.6.Final] at org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:243)[xnio-api-3.3.6.Final.jar!/:3.3.6.Final] at io.undertow.Undertow.start(Undertow.java:142)[undertow-core-1.3.23.Final.jar!/:1.3.23.Final]

    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

    Unknown visitor
    Unknown visitorOnce,
    musketyrmusketyr
    9 times, last one
    Unknown visitor
    Unknown visitorOnce,
    AxeloAxelo
    8 times, last one
    slashslash
    8 times, last one
    141 more bugmates