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

Solutions on the web

via GitHub by MizukiSonoko
, 1 year ago
channel "aeron:udp?endpoint=second-machine:40123" : java.net.BindException: Cannot assign requested address
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)
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)

Users with the same issue

21 times, 17 hours ago
9 times, 2 days ago
Once, 2 days ago
66 times, 5 days ago
Once, 1 week ago

Write tip

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