lang.RuntimeException

channel "aeron:udp?endpoint=second-machine:40123" : java.net.BindException: Cannot assign requested address

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

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

Solutions on the web712

  • via GitHub by btorpey
    ,
  • via GitHub by btorpey
    ,
  • Stack trace

    • lang.RuntimeException: channel "aeron:udp?endpoint=second-machine:40123" : java.net.BindException: Cannot assign requested address at io.aeron.driver.media.UdpChannelTransport.openDatagramChannel(UdpChannelTransport.java:127) at io.aeron.driver.media.ReceiveChannelEndpoint.openChannel(ReceiveChannelEndpoint.java:127) at io.aeron.driver.Receiver.onRegisterReceiveChannelEndpoint(Receiver.java:115) at io.aeron.driver.cmd.RegisterReceiveChannelEndpointCmd.execute(RegisterReceiveChannelEndpointCmd.java:32) at io.aeron.driver.Receiver.accept(Receiver.java:134) at io.aeron.driver.Receiver.accept(Receiver.java:36) at org.agrona.concurrent.OneToOneConcurrentArrayQueue.drain(OneToOneConcurrentArrayQueue.java:106) at io.aeron.driver.Receiver.doWork(Receiver.java:64) at org.agrona.concurrent.AgentRunner.run(AgentRunner.java:106) at java.lang.Thread.run(Thread.java:745) Caused by: java.net.BindException: Cannot assign requested address at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:691) at io.aeron.driver.media.UdpChannelTransport.openDatagramChannel(UdpChannelTransport.java:103) ... 9 more

    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

    AxeloAxelo
    8 times, last one
    slashslash
    8 times, last one
    zsambokizsamboki
    6 times, last one
    Unknown UserUnknown User
    Once,
    rocdayrocday
    2 times, last one
    141 more bugmates