Failed to Bind Port

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

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

    TimeScorpion7

    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!
     
  2. Offline

    ImminentFate

    Try restarting your computer. If that won't work, you may have to change the port you use in server.properties
     
  3. Offline

    TimeScorpion7

    What should I change the port to?
     
  4. Offline

    ImminentFate

    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

    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.

    What should I do if that does not work?

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

    r0306

    Make sure you've port forwarded.
     
  7. Offline

    TimeScorpion7

  8. Offline

    ImminentFate

    that has nothing to do with it at this stage
     
  9. Offline

    r0306

  10. Offline

    ImminentFate

    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"
     
  11. Offline

    r0306

    Even if it might not have to do with that, he should still port forward.
     
  12. Offline

    ImminentFate

    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
     
  13. Offline

    r0306

    ImminentFate
    If it were another server running, the error would be:
    Code:
    Address is already in use: JVM_Bind
    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.

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

    TimeScorpion7

    Sorry so what do I do?
     
  15. Offline

    ImminentFate

    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?


    Okay TimeScorpion7
    Try deleting your server.properties file, then run the server

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

    TimeScorpion7

    Oh no I can join if I leave the ip blank I can connect through "localhost"

    I did that now what?

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

    ImminentFate

    that is the only way you can connect.

    So, has the error gone?

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

    TimeScorpion7

    Ok how do I get other people to connect?
     
  19. Offline

    r0306

    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.

    Read ImminentFate 's tutorial on Port Forwarding :p
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  20. Offline

    TimeScorpion7

    Ok so I do the tut. on port forwarding then what?
     
  21. Offline

    ImminentFate

    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.
  22. Offline

    r0306

    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).
     
  23. Offline

    TimeScorpion7

    Is that tut. for mac too?
     
  24. Offline

    ImminentFate

    works the same, yes
     
  25. Offline

    TimeScorpion7

    Can I use port map?
     
  26. Offline

    ImminentFate

    If you need further help, I'm available on Teamviewer.
     
  27. Offline

    TimeScorpion7

    WHat is that?
     
  28. Offline

    ImminentFate

    what's port map?

    Teamviewer is a program that lets me see and control your computer.

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

    TimeScorpion7

    Port map is a port forwarding program i think check it out

    My parents would probably not let me in my server ip thing
     
  30. Offline

    andrewpo

    No, no, no.

    Non-advanced users should never change their server-ip setting, Bukkit will work fine without it providing that firewall/port forwarding/etc is configured correctly.

    Only reason to change that is if you are hosting multiple bukkit instances from the same machine (e.g. a minecraft server host) or are running Hamachi.


    To get your internal IP, click the Airport icon in your menu bar - then go to network preferences.
    [​IMG]
     
Thread Status:
Not open for further replies.

Share This Page