channel "aeron:udp?endpoint=second-machine:40123" : 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.


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" : Cannot assign requested address at at at io.aeron.driver.Receiver.onRegisterReceiveChannelEndpoint( at io.aeron.driver.cmd.RegisterReceiveChannelEndpointCmd.execute( at io.aeron.driver.Receiver.accept( at io.aeron.driver.Receiver.accept( at org.agrona.concurrent.OneToOneConcurrentArrayQueue.drain( at io.aeron.driver.Receiver.doWork( at at Caused by: Cannot assign requested address at Method) at at at ... 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

    8 times, last one
    8 times, last one
    6 times, last one
    Unknown UserUnknown User
    2 times, last one
    141 more bugmates