Failed to Bind Port

Discussion in 'Bukkit Help' started by TimeScorpion7, Jun 16, 2012.

  1. Offline

    TimeScorpion7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I am trying to create a server one my home computer with my Apple Time Capsule. I went to "server properties" in my server file and put in my ip. I ran "start_server.command" and it said this:

    00:14:14 [INFO] Starting minecraft server version 1.2.5
    00:14:14 [INFO] Loading properties
    00:14:14 [INFO] Starting Minecraft server on (my ip removed)
    00:14:14 [WARNING] **** FAILED TO BIND TO PORT!
    00:14:14 [WARNING] The exception was: java.net.BindException: Can't assign requested address
    00:14:14 [WARNING] Perhaps a server is already running on that port

    Please if you know why I can't get it to work or know how to solve it, please put the answer below!

    This post has been edited 1 time. It was last edited by TimeScorpion7 Jun 16, 2012.
  2. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Try restarting your computer. If that won't work, you may have to change the port you use in server.properties
  3. Offline

    TimeScorpion7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What should I change the port to?
  4. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    anything else, but try restarting your computer and router first. The error should only really apply if you're running two server's at once, but sometimes the router or computer clings on to the port even after you close a server.
  5. Offline

    TimeScorpion7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I restarted my Comp. I will restart the router soon. I did try to create a server before but it failed so I must have done something to mess up something on my Comp.
  6. Offline

    TimeScorpion7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What should I do if that does not work?
  7. Offline

    r0306

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Make sure you've port forwarded.
  8. Offline

    TimeScorpion7

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

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    that has nothing to do with it at this stage
  10. Offline

    r0306

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

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    alright, open up your server.properties, and make sure the "server-ip:" is blank.
    Then set the "server-port:" to 25579 or something
    then start the server, and open up minecraft.
    In minecraft, connect to the ip "localhost:25579"
  12. Offline

    r0306

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Even if it might not have to do with that, he should still port forward.
  13. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @r0306 I made that tutorial, but this problem means its trying to connect to a port that is being used by another process already. Possibly a vanilla minecraft server. But you're right about needing to port forward, although that comes after he fixes this issue

    This post has been edited 1 time. It was last edited by ImminentFate Jun 16, 2012.
  14. Offline

    r0306

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @ImminentFate
    If it were another server running, the error would be:
    Code:
    Address is already in use: JVM_Bind
  15. Offline

    r0306

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have a feeling that your IP you are using is invalid or it got updated. Check that your server.properties IP is up-to-date here: www.whatismyip.org.
  16. Offline

    TimeScorpion7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sorry so what do I do?
  17. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @r0306
    You are right. And so am I :p
    the exception is java.net.BindException:
    Now, port forwarding will only help him if he actually has a usable port to forward onto. If he gets an error at the computer level, It will never go through the router. The first step is to actually get to the stage where he can run the server locally. Once he wants other people to join, port-forwarding comes in.
    See what I'm getting at?
  18. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okay @TimeScorpion7
    Try deleting your server.properties file, then run the server
  19. Offline

    TimeScorpion7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh no I can join if I leave the ip blank I can connect through "localhost"
  20. Offline

    TimeScorpion7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I did that now what?
  21. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    that is the only way you can connect.
  22. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So, has the error gone?
  23. Offline

    TimeScorpion7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok how do I get other people to connect?
  24. Offline

    r0306

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes. BindException is thrown when the server cannot bind either the IP or the port to run on. You are right. It's not a problem of port forwarding. Rather, I strongly believe that the IP address he is using is not the same as his current IP.
  25. Offline

    r0306

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

    This post has been edited 1 time. It was last edited by r0306 Jun 16, 2012.
  26. Offline

    TimeScorpion7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok so I do the tut. on port forwarding then what?
  27. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    there are two tutorials on that page. One for hamachi, one for port forwarding. Only do hamachi if port-forwarding becomes impossible
    DT_Rush likes this.
  28. Offline

    r0306

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Then after you've port forwarded, go to www.whatismyip.org and give your friends that IP to connect to.

    And like @ImminentFate said, only use hamachi if you have to (like if you don't know the router login info).

    This post has been edited 1 time. It was last edited by r0306 Jun 16, 2012.
  29. Offline

    TimeScorpion7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is that tut. for mac too?
  30. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    works the same, yes

Share This Page