java.net.BindException: Address already in use: bind

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

Samebug tips

,

Its saying that a Java application is trying to connect on port but that port is already being used by some other process and JVM Bind to that particular port is failed.

,
via Stack Overflow by Coffee

Check which program is running on the given port.

Windows: netstat -a -b -n (Use Resource Monitor if you are admin) Linux: lsof -i:<port>

Kill the process.

Windows taskkill -pid <process-id> /f Linux kill -9 <process-id>

Solutions on the web

via askubuntu.com by Unknown author, 8 months ago
via askubuntu.com by Unknown author, 1 year ago
via Stack Overflow by Nikunj Tolambe
, 7 months ago
via felix-users by Antonio Sanso, 1 year ago
Address already in use
via tigase.net by Unknown author, 2 years ago
Address already in use
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at com.aelitis.azureus.core.networkmanager.impl.tcp.VirtualBlockingServerChannelSelector.start(VirtualBlockingServerChannelSelector.java:77)
at com.aelitis.azureus.core.networkmanager.impl.tcp.IncomingSocketChannelManager.start(IncomingSocketChannelManager.java:420)
at com.aelitis.azureus.core.networkmanager.impl.tcp.IncomingSocketChannelManager.(IncomingSocketChannelManager.java:152)
at com.aelitis.azureus.core.networkmanager.impl.tcp.TCPNetworkManager.(TCPNetworkManager.java:125)
at com.aelitis.azureus.core.networkmanager.impl.tcp.TCPNetworkManager.(TCPNetworkManager.java:48)
at com.aelitis.azureus.core.networkmanager.NetworkManager.getMinMssSize(NetworkManager.java:267)
at com.aelitis.azureus.core.networkmanager.impl.ByteBucketST.ensureByteBucketMinBurstRate(ByteBucketST.java:168)
at com.aelitis.azureus.core.networkmanager.impl.ByteBucketST.(ByteBucketST.java:59)
at com.aelitis.azureus.core.networkmanager.impl.ByteBucketST.(ByteBucketST.java:45)
at com.aelitis.azureus.core.networkmanager.impl.TransferProcessor.createBucket(TransferProcessor.java:556)
at com.aelitis.azureus.core.networkmanager.impl.TransferProcessor.(TransferProcessor.java:75)
at com.aelitis.azureus.core.networkmanager.NetworkManager.(NetworkManager.java:161)
at com.aelitis.azureus.core.networkmanager.NetworkManager.(NetworkManager.java:53)
at com.aelitis.azureus.core.impl.AzureusCoreImpl.(AzureusCoreImpl.java:289)
at com.aelitis.azureus.core.impl.AzureusCoreImpl.create(AzureusCoreImpl.java:145)
at com.aelitis.azureus.core.AzureusCoreFactory.create(AzureusCoreFactory.java:43)
at org.gudy.azureus2.ui.swt.Main.(Main.java:107)
at org.gudy.azureus2.ui.swt.Main.main(Main.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at com.aelitis.azureus.launcher.MainExecutor$1.run(MainExecutor.java:34)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

21 times, 4 days ago
9 times, 5 days ago
Once, 5 days ago
66 times, 1 week ago
Once, 1 week ago

Write tip

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