FAILED TO BIND TO PORT!-Tried everything I know...

Discussion in 'Bukkit Help' started by nicboyman, Apr 2, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    nicboyman

    I was running a bukkit server just fine for about 3 days. Then one day, while i was running my server,(its a small server... for me and my friends) the power went out and it started storming. About 45 minutes later, it came back on. I went to start the server again, and when i ran "RUN.bat" it said "FAILED TO BIND TO PORT! The exception was: java.net.BindException: Cannot assign requested address: JUM_Bind... Perhaps a server is already running on that port?" I am on Windows XP. I have tried everything I know! I changed the port, closed all java in task manager, and restarted my computer. If there is something else you need to know please tell me. Hope you can help...
     
  2. Offline

    c0mp

    Make sure your server-ip line is blank after the = sign in your server.properties file.
     
  3. Offline

    Rytis

    Any other servers started at the same time?
     
  4. Offline

    nicboyman

    It's blank. I hadn't put anything in there before, while, or after running my server.
    No, I have no other server running.
    I don't know why this is happening. Obviously the power outage had something to do with it... I just don't know what.
     
  5. Offline

    Cicadia

    Run "netstat" in the command prompt, and see if your port you're using for Bukkit is already listed. Also, try running the server with administrative privileges (Only privately, though!) and see if that solves your problem.

    My best throw-together of tips for you looks like the following:
    • The port in use, which is obviously very common
    • Your machine's network card has failed. Try "ipconfig" in the Windows command prompt and see if you're assigned an IP address, such as 192.168.1.100.
    • You don't have permission to use that address. I believe ports under 1024 (correct me if I'm wrong) are reserved by Windows for core functionality, especially ports 25 and 80 (Only bound by Windows features like IIS), and 135-139. To bind to those ports, they have to be not in use, and bound with administrative privileges. Not positive on this!
    • Bukkit may have a bug, which would make my jaw drop, since this is an absolutely essential feature for Bukkit to bind the server listener.
     
  6. Offline

    nicboyman

    I checked netstat, the port wasnt listed. Is that good or bad?
    I have an assigned IP address. The port I'm using is 25567. I was using 25566, then this happened and I changed to to 25567 hoping it would work. Also I'm quite sure I'm always running administrative... How would I check that? :p
    It seems like I've just hit bedrock here, I don't know what to do...
    [bedrock][bedrock][bedrock][bedrock][bedrock][bedrock][bedrock][bedrock][bedrock][bedrock]

    Well... Now the server runs fine... But nobody can connect... Not even me, with localhost. Any ideas?
    well, obviously it isnt working fine or at least I could connect. Forgot to add that in my post :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  7. Offline

    Rytis

    Uhm, that's not easy, need to think why it doesn't work :p
     
  8. Offline

    nicboyman

    I checked my port forwarding so it's not that. Just thought I'd throw that out there.

    Anyone? I really want to know how to fix this because I can't even make a different server. It still says that same error! Failed to bind port... This is my luck. I finally get a server going for my friends that I, for some reason, couldn't do for a year, and now it messes up and I can't even make a new one...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  9. Offline

    Rytis

    I don't know why this is happening.
     
  10. Offline

    Royalgamer06

    Kill all java processes and then start the server, see if that works. And make sure 'server-ip=' is blank and you have port forwarded right. (or do you use a hamachi server?)
     
  11. Offline

    Ylar

    When this happen, the fastest way to fix this is to completly relog your current user or restart the computer. This will always fix this problem. :)
     
  12. Offline

    nicboyman

    If you'd read my first post and the other posts, you'd know I have already tried this.
     
  13. Offline

    creeper5380

    I just worked it out :) i run a server so trust me on this download port map and add a new port called mine craft and 25565 with the + sign then after that go to the top of it it should say port map running on and then a number use that as your server ip do not fill anything in in the see prop ip leave it blank then go onto mine craft and for the host type in localhost done other players can join with the ip that you got from port map leave it on while you are running the server
     
  14. Offline

    Rytis

    Do you know what punctuation marks are? ;D
     
    Nathan C likes this.
  15. Offline

    cray_Z

    Try restarting your computer
     
  16. Offline

    Toxic__Waste

    i had my power go out on me and when it came back the port forward was still there but the number changed on what comp was on it ...it was 192.168.1.3

    after the power came back i did ipconfig on the server comp and it came back 192.168.1.5
    so i had to go in the router and edit it so that the traffic forwarded right
     
  17. Offline

    Rytis

    That's your local IP, you need you public IP :p
     
  18. Offline

    andrewpo

    I'm not a windows user so I can't offer overly helpful support, but have you tried to right-click your start file and run it as an administrator?
     
  19. Offline

    Toxic__Waste

    well no duh :cool: what i was saying is it mixed up my router numbers the one that was port forwarded before no longer went to the same comp so i had to adjust for that and that was after a power outage
     
  20. Offline

    Rytis

    Aaa.. ok xD
     
  21. Offline

    FXHNTR

    nicboyman
    Did you make sure that that ip address hasn't changed? I had a friend whose power went out and his external IP changed.
     
  22. Offline

    Ne0nx3r0

    nicboyman
    Some questions:

    When you say the server is "running fine" you mean it loads your plugins and then seems to wait for players without any obvious errors?

    Is that computer's Internet connection working? (ie can you Google something you haven't before and download a file?)

    Do you have a firewall that could be interferring or have you tried disabling the Windows Firewall? Perhaps some software has expired and is now screwing with you? (It doesn't hurt to uninstall any unnecessary software)

    You say your port forwarding is correct; have you tried hosting another server (say FTP) and seeing if you can use an online FTP test to connect? This will at least tell you your network layer work is correct.

    Some generic troubleshooting:

    Go to your local area connection and right click > repair

    If that doesn't fix it...

    Go into your device manager and uninstall any NIC drivers then restart your computer. (or scan for new devices and reinstall the drivers)

    If that doesn't fix it...

    Uninstall anything Java you have installed, restart your computer, and reinstall Java.

    ...

    Create a fresh server from scratch (none of your existing files! download everything) and see if you can join that one from your computer or another on your network. If you can, piece by piece move your files to your fresh copy and bring it back up, noting the point where it stops letting you connect (if it does).

    ...

    Profit?
     
  23. I have been having the same problem. I just fixed it though. Try changing the port. (I changed it to 25570) Yes, I know you already tried that but just try changing it to 25570 and see if it works. The ports you are trying to use may be taken by other applications.
     
  24. Offline

    Deleted user

    New Port?
     
  25. Offline

    shark4675

    here is the easy thing you see when you web goes out sometimes the IP can change slighty go to CMD from the start menu put in ipconfig look for the IPv4 now go to were ever you have your ports and everything see if that IP is the same or not if is the same then your good change it and watch as everything works again if not... something is all kinds of messed up so if it is not that look for any thing in the task manger that has java
     
  26. Offline

    Nitropro

    I got the same problem, that it faled to bind port! btw, is this right:
    Server-ip=85.230.191.2**
    Port=25565
    Portforwarding=192.168.0.***
    Does the port forwarding need to be the same as the server or is the server need to be the same as port forwarding?
    And i am using Dlink if thats help :oops:.
    I have tried to change the port to 25567, 25566 and the same at port forwarding. i have tried EVERYTHING that
    is here and i culd come on to.
    So if you are changing the port on server.properties do you need to do the same at the port forwarding?
    Please help!
     
Thread Status:
Not open for further replies.

Share This Page