I've been running a minecraft server on my linux box for some time now. I recently just ditched my old linux distro for Debian. I didn't touch my portmaps so those stayed the same. After doing a clean install of Debian, I made sure my java was installed and up to date, copied my minecraft server back to my linux server, tried to start it up, and I'm getting the "Failed to bind to port, address already in use" error.
After seeing this I tried running lsof -i :25565 to see what was running on that port and got:
This leads me to believe that java is listening on that port, but nothing is running.
I then tried running it on 25564 as well as a number of other ports and they all come up with the same result: the failed to bind to port error.
Is there any other reason for getting this error than the port being in use, or maybe have I overlooked something?
Edit: I should note that I'm doing everything the same way as I had it before which was working. I've also disabled my firewall for the moment while I try to figure this out. My router is forwarding the same ports as before and doesn't have firewall software in it.
I've been running a minecraft server on my linux box for some time now. I recently just ditched my old linux distro for Debian. I didn't touch my portmaps so those stayed the same. After doing a clean install of Debian, I made sure my java was installed and up to date, copied my minecraft server back to my linux server, tried to start it up, and I'm getting the "Failed to bind to port, address already in use" error.
After seeing this I tried running lsof -i :25565 to see what was running on that port and got:
This leads me to believe that java is listening on that port, but nothing is running.
I then tried running it on 25564 as well as a number of other ports and they all come up with the same result: the failed to bind to port error.
Is there any other reason for getting this error than the port being in use, or maybe have I overlooked something?
Edit: I should note that I'm doing everything the same way as I had it before which was working. I've also disabled my firewall for the moment while I try to figure this out. My router is forwarding the same ports as before and doesn't have firewall software in it.
provide more of the debug output from the server log and it'll be easier to diagnose.
2011-02-04 11:53:25 [INFO] Starting minecraft server version Beta 1.2_01
2011-02-04 11:53:25 [INFO] Loading properties
2011-02-04 11:53:25 [INFO] Starting Minecraft server on *:25565
2011-02-04 11:53:25 [WARNING] **** FAILED TO BIND TO PORT!
2011-02-04 11:53:25 [WARNING] The exception was: java.net.BindException: Address already in use
2011-02-04 11:53:25 [WARNING] Perhaps a server is already running on that port?
Also I checked this post: viewtopic.php?f=1013&t=39541 which seems to indicate an issue with Debian trying to use ipv6 over ipv4 but their solution didn't work for me.
2011-02-04 11:53:25 [INFO] Starting minecraft server version Beta 1.2_01
2011-02-04 11:53:25 [INFO] Loading properties
2011-02-04 11:53:25 [INFO] Starting Minecraft server on *:25565
2011-02-04 11:53:25 [WARNING] **** FAILED TO BIND TO PORT!
2011-02-04 11:53:25 [WARNING] The exception was: java.net.BindException: Address already in use
2011-02-04 11:53:25 [WARNING] Perhaps a server is already running on that port?
Also I checked this post: viewtopic.php?f=1013&t=39541 which seems to indicate an issue with Debian trying to use ipv6 over ipv4 but their solution didn't work for me.
tried rebooting the computer? it could be that a stale copy of the server is still running in the background (stale meaning, its up, bound to the port, but not accessible). rebooting the server would solve this, or force closing any instances of java if youre comfy doing that.
**** FAILED TO BIND TO PORT! can be caused by a few things, but based on YOUR debug output, ^^ is the most likely cause.
tried rebooting the computer? it could be that a stale copy of the server is still running in the background (stale meaning, its up, bound to the port, but not accessible). rebooting the server would solve this, or force closing any instances of java if youre comfy doing that.
**** FAILED TO BIND TO PORT! can be caused by a few things, but based on YOUR debug output, ^^ is the most likely cause.
Way to make me look like a moron haha (cant believe that worked). Restarted my linux server and my minecraft server started up but with errors.
Now I'm getting:
SEVERE: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/xawt/libmawt.so (Is it up to date?)
java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/xawt/libmawt.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666)
at java.lang.Runtime.load0(Runtime.java:787)
at java.lang.System.load(System.java:1022)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1614)
at java.awt.Toolkit.<clinit>(Toolkit.java:1636)
at java.awt.Color.<clinit>(Color.java:279)
at org.dynmap.kzedmap.KzedMap.loadColorSet(KzedMap.java:351)
at org.dynmap.kzedmap.KzedMap.<init>(KzedMap.java:40)
at org.dynmap.MapManager.<init>(MapManager.java:60)
at org.dynmap.DynmapPlugin.onEnable(DynmapPlugin.java:45)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:294)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:175)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:64)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:45)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:181)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
I've tried running "apt-get install default-jre" and that's up to date. Anything else I'm missing?
hmm, maybe your previous MC server didn't close correctly - try:
ps x
this willlist all your stuf on linux under your user, look for a process called JAVA or something similar, get the number that's next to it, then do:
kill -9 number
this will terminate the process and should clear the port
99% of the time in my experience Failed to bind port means there is something already using said port.
I know you posted you got it resolved, just leaving this here for others that might wander through with the same issue
IMO, most problems arent that something is on the same port. *IMO* most bind to port problems is people putting the server-ip in the server.properties file, which...shouldnt be there for *most* configurations.
You are correct in most general non-Minecraft cases, zombiemann. If another application or instance of an application is using the port, you won't be able to bind to the port.
But in many cases as I've seen in the forums, it's caused by someone putting an IP in the server-ip field of their server.properties file. Putting an IP in this field will tell the server to listen to all packets directed TO that IP. This is used when/if you have a server on a computer with multiple IPs, and you want to limit the Minecraft server to a single IP.
Most people will put their external IP here causing the server to give an error because the computer does not own the external IP.
Hey im doin this on mac and this is the error i get
2011-03-03 18:41:49 [INFO] Starting minecraft server version Beta 1.3
2011-03-03 18:41:49 [INFO] Loading properties
2011-03-03 18:41:49 [INFO] Starting Minecraft server on 173.33.98.169:25565
2011-03-03 18:41:49 [WARNING] **** FAILED TO BIND TO PORT!
2011-03-03 18:41:49 [WARNING] The exception was: java.net.BindException: Can't assign requested address
2011-03-03 18:41:49 [WARNING] Perhaps a server is already running on that port?
when i tried to do port forwarding i couldnt connect to the internet is there an easy way on portforwarding (i tried portmap and couldnt get it working) same isue with binding ports
You are correct in most general non-Minecraft cases, zombiemann. If another application or instance of an application is using the port, you won't be able to bind to the port.
But in many cases as I've seen in the forums, it's caused by someone putting an IP in the server-ip field of their server.properties file. Putting an IP in this field will tell the server to listen to all packets directed TO that IP. This is used when/if you have a server on a computer with multiple IPs, and you want to limit the Minecraft server to a single IP.
Most people will put their external IP here causing the server to give an error because the computer does not own the external IP.
~~~~OMFG!!!!!!!!!!!!!! IT ACTUALLY WORKED HOURS OF RESEARCH AND THIS SIMPLE SOLUTION WORKED!! THNX I HEART U!! :SSSS:~~~~~~NVM it worked for about a minute, then now its not working anymore!! GRRRR.
I have the exact same problem. I've done everything on this page and it doesn't work! Anyother ideas? I've turned off and restarted all my computers and then try to run it and it still says that.
I had this exact same "FAILED TO BIND TO PORT" problem and my solution had nothing to do with port forwarding in the end I just uninstalled Lowerping a WoW tunneling problem so everyone who is running programs like wowtunnels, smoothping etc should probably try the same.
ok so im trying to do it with no-ip.com and for some reason everytime i put in my ip from no-ip.com it comes up with this
161 recipes
17 achievements
16:03:54 [INFO] Starting minecraft server version Beta 1.8.1
16:03:54 [INFO] Loading properties
16:03:55 [INFO] Starting Minecraft server on nashter0server.bounceme.net:25565
16:03:55 [WARNING] **** FAILED TO BIND TO PORT!
16:03:55 [WARNING] The exception was: java.net.BindException: Cannot assign requ
ested address: JVM_Bind
16:03:55 [WARNING] Perhaps a server is already running on that port?
and i have done all the portforwarding steps correctly idk what the problem is HELP ME!
ok so im trying to do it with no-ip.com and for some reason everytime i put in my ip from no-ip.com it comes up with this
161 recipes
17 achievements
16:03:54 [INFO] Starting minecraft server version Beta 1.8.1
16:03:54 [INFO] Loading properties
16:03:55 [INFO] Starting Minecraft server on nashter0server.bounceme.net:25565
16:03:55 [WARNING] **** FAILED TO BIND TO PORT!
16:03:55 [WARNING] The exception was: java.net.BindException: Cannot assign requ
ested address: JVM_Bind
16:03:55 [WARNING] Perhaps a server is already running on that port?
and i have done all the portforwarding steps correctly idk what the problem is HELP ME!
Did you try leaving the ip blank in your server.properties file? Have you tried restarting your computer?
I've been running a minecraft server on my linux box for some time now. I recently just ditched my old linux distro for Debian. I didn't touch my portmaps so those stayed the same. After doing a clean install of Debian, I made sure my java was installed and up to date, copied my minecraft server back to my linux server, tried to start it up, and I'm getting the "Failed to bind to port, address already in use" error.
After seeing this I tried running lsof -i :25565 to see what was running on that port and got:
java 3702 root 11u IPv4 11305 TCP *:25565 (LISTEN)
This leads me to believe that java is listening on that port, but nothing is running.
I then tried running it on 25564 as well as a number of other ports and they all come up with the same result: the failed to bind to port error.
Is there any other reason for getting this error than the port being in use, or maybe have I overlooked something?
Edit: I should note that I'm doing everything the same way as I had it before which was working. I've also disabled my firewall for the moment while I try to figure this out. My router is forwarding the same ports as before and doesn't have firewall software in it.
provide more of the debug output from the server log and it'll be easier to diagnose.
2011-02-04 11:53:25 [INFO] Starting minecraft server version Beta 1.2_01
2011-02-04 11:53:25 [INFO] Loading properties
2011-02-04 11:53:25 [INFO] Starting Minecraft server on *:25565
2011-02-04 11:53:25 [WARNING] **** FAILED TO BIND TO PORT!
2011-02-04 11:53:25 [WARNING] The exception was: java.net.BindException: Address already in use
2011-02-04 11:53:25 [WARNING] Perhaps a server is already running on that port?
Also I checked this post: viewtopic.php?f=1013&t=39541 which seems to indicate an issue with Debian trying to use ipv6 over ipv4 but their solution didn't work for me.
tried rebooting the computer? it could be that a stale copy of the server is still running in the background (stale meaning, its up, bound to the port, but not accessible). rebooting the server would solve this, or force closing any instances of java if youre comfy doing that.
**** FAILED TO BIND TO PORT! can be caused by a few things, but based on YOUR debug output, ^^ is the most likely cause.
Way to make me look like a moron haha (cant believe that worked). Restarted my linux server and my minecraft server started up but with errors.
Now I'm getting:
I've tried running "apt-get install default-jre" and that's up to date. Anything else I'm missing?
ps x
this willlist all your stuf on linux under your user, look for a process called JAVA or something similar, get the number that's next to it, then do:
kill -9 number
this will terminate the process and should clear the port
Also, try reinstalling java again
I know you posted you got it resolved, just leaving this here for others that might wander through with the same issue
See what we are building here: http://zombiecraft.servebeer.com
IMO, most problems arent that something is on the same port. *IMO* most bind to port problems is people putting the server-ip in the server.properties file, which...shouldnt be there for *most* configurations.
You are correct in most general non-Minecraft cases, zombiemann. If another application or instance of an application is using the port, you won't be able to bind to the port.
But in many cases as I've seen in the forums, it's caused by someone putting an IP in the server-ip field of their server.properties file. Putting an IP in this field will tell the server to listen to all packets directed TO that IP. This is used when/if you have a server on a computer with multiple IPs, and you want to limit the Minecraft server to a single IP.
Most people will put their external IP here causing the server to give an error because the computer does not own the external IP.
2011-03-03 18:41:49 [INFO] Starting minecraft server version Beta 1.3
2011-03-03 18:41:49 [INFO] Loading properties
2011-03-03 18:41:49 [INFO] Starting Minecraft server on 173.33.98.169:25565
2011-03-03 18:41:49 [WARNING] **** FAILED TO BIND TO PORT!
2011-03-03 18:41:49 [WARNING] The exception was: java.net.BindException: Can't assign requested address
2011-03-03 18:41:49 [WARNING] Perhaps a server is already running on that port?
please help me
~~~~OMFG!!!!!!!!!!!!!! IT ACTUALLY WORKED HOURS OF RESEARCH AND THIS SIMPLE SOLUTION WORKED!! THNX I HEART U!! :SSSS:~~~~~~NVM it worked for about a minute, then now its not working anymore!! GRRRR.
Well I'm just an old fart here...like 500 years in internet time.
161 recipes
17 achievements
16:03:54 [INFO] Starting minecraft server version Beta 1.8.1
16:03:54 [INFO] Loading properties
16:03:55 [INFO] Starting Minecraft server on nashter0server.bounceme.net:25565
16:03:55 [WARNING] **** FAILED TO BIND TO PORT!
16:03:55 [WARNING] The exception was: java.net.BindException: Cannot assign requ
ested address: JVM_Bind
16:03:55 [WARNING] Perhaps a server is already running on that port?
and i have done all the portforwarding steps correctly idk what the problem is HELP ME!
Did you try leaving the ip blank in your server.properties file? Have you tried restarting your computer?
Trusted and Established Minecraft Server Hosting since Alpha in 2010. Minecraft Server Host: www.minecraftserverhost.net
Test Servers: test.minecraft.ms | east.minecraft.ms | central.minecraft.ms | west.minecraft.ms
I am a representative of Minecraftserverhost.net