java.net.BindException: bind failed: EADDRINUSE (Address already in use)

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 sthalik
, 1 year ago
bind failed: EADDRINUSE (Address already in use)
via Stack Overflow by Sean Kilb
, 1 year ago
via Stack Overflow by Kishor
, 1 year ago
bind failed: EADDRINUSE (Address already in use)
via Stack Overflow by Lockhead
, 2 years ago
bind failed: EADDRNOTAVAIL (Cannot assign requested address)
via Stack Overflow by Muhammed Refaat
, 1 year ago
via Stack Overflow by user1256821
, 2 years ago
bind failed: EINVAL (Invalid argument)
java.net.BindException: bind failed: EADDRINUSE (Address already in use)
at libcore.io.IoBridge.bind(IoBridge.java:89)
at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:68)
at java.net.DatagramSocket.createSocket(DatagramSocket.java:133)
at java.net.DatagramSocket.(DatagramSocket.java:78)
at com.loxai.opentrack.SensorServer.(SensorServer.java:48)
at com.loxai.opentrack.MainActivity.startServer(MainActivity.java:92)

Users with the same issue

14 times, 11 months ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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