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

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

  1. Offline

    nicboyman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 Community Staff Moderator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Make sure your server-ip line is blank after the = sign in your server.properties file.
  3. Offline

    Rytis

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Any other servers started at the same time?
  4. Offline

    nicboyman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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]
  7. Offline

    nicboyman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    This post has been edited 1 time. It was last edited by nicboyman Apr 4, 2012.
  8. Offline

    Rytis

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Uhm, that's not easy, need to think why it doesn't work :p
  9. Offline

    nicboyman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I checked my port forwarding so it's not that. Just thought I'd throw that out there.
  10. Offline

    nicboyman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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...
  11. Offline

    Rytis

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I don't know why this is happening.
  12. Offline

    Royalgamer06

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?)
  13. Offline

    Ylar

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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. :)

    This post has been edited 1 time. It was last edited by Ylar Apr 5, 2012.
  14. Offline

    nicboyman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If you'd read my first post and the other posts, you'd know I have already tried this.
  15. Offline

    creeper5380

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  16. Offline

    Rytis

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Do you know what punctuation marks are? ;D
    Nathan C likes this.
  17. Offline

    cray_Z

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Try restarting your computer
  18. Online

    Toxic__Waste

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  19. Offline

    Rytis

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That's your local IP, you need you public IP :p
  20. Offline

    andrewpo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?
  21. Online

    Toxic__Waste

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    This post has been edited 1 time. It was last edited by Toxic__Waste May 31, 2012.
  22. Offline

    Rytis

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Aaa.. ok xD
  23. Offline

    FXHNTR

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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.
  24. Offline

    Ne0nx3r0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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?
  25. Offline

    Coco The Moon Cat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  26. Offline

    ShootToMaim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  27. Offline

    shark4675

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  28. Offline

    Nitropro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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!

    This post has been edited 2 times. It was last edited by md_5 Nov 1, 2012.

Share This Page