Solved Failed to bind to port

Discussion in 'Bukkit Help' started by EpicMinerDude99, Jul 24, 2014.

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

    EpicMinerDude99

    I just started a server. Basically, this is what it says.

    [​IMG]

    I have never ran a server before, I've looked at other threads but no help..
    Can anyone help?
     
  2. Offline

    JWhy

    The attached screenshot doesn't load. You can upload your image to imgur.com to be sure it's embeddable here
     
  3. Offline

    saiismad823

    In your server.properties file > 'server-ip=<serverIP>' make sure <serverIP> is the same as your servers actual IP address.

    To find your servers ip address in windows open a command prompt (cmd) and type 'ipconfig' in Linux open a terminal and type 'ifconfig'.

    Let me know how that goes.
     
  4. Offline

    JWhy

    saiismad823: server-ip= should not be set to any value, unless you're in need of an advanced configuration (such as on machines with multiple minecraft servers)
     
    dave0smeg likes this.
  5. Offline

    saiismad823


    Oh ok, Thats just how I have always done it because my server has 2 network adapters (WAN and LAN) which obviously have differnet IP's
     
  6. Offline

    JWhy

    saiismad823: Do you still have any issues? Again, the value for server-ip= should be left blank
     
  7. Offline

    saiismad823

    No I have never had Issues with the server's address because The WAN network card has a static IP address and my LAN network card does which means if I did not force the server to use the IP address of the WAN network card it would sometimes bind to the LAN IP address instead.
     
  8. Offline

    LHammonds

    My guess is that you have a server already running in the background (maybe it didn't shutdown properly or was never told to stop)

    Reboot your PC and see if that clears it up. If so, that was your problem. If not, make sure you are running on the default port of 25565 (which is typically not used by anything else)

    LHammonds
     
  9. Offline

    EpicMinerDude99

    server-ip is blank, my port is 25565.

    Bump

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

    saiismad823

    EpicMinerDude99
    Make sure there is no java process running (Task manager) before starting your server. If there is end the process and start the server.

    If the problem still persists please post your batch file, server.properties and a screen shot of your console with the error.
     
  11. Offline

    EpicMinerDude99

    I fixed the image in the main thread. There's no java running apart from the MC game which I still tried to close but still didn't work.

    Batch:
    @Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE

    server.properties:
    #Minecraft server properties
    #Sat Jul 26 11:14:39 BST 2014
    player-idle-timeout=0
    resource-pack=
    online-mode=true
    gamemode=0
    spawn-animals=true
    difficulty=1
    server-ip=
    pvp=true
    server-port=25565
    allow-flight=false
    force-gamemode=false
    spawn-npcs=true
    generate-structures=true
    motd=Welcome to Neutron Nation!
     
  12. Offline

    saiismad823

    EpicMinerDude99
    I cant see anything wrong with wither files. You could try making sure port 25565 is allowed through Windows firewall.
    If that still does not work try setting server-ip= to your computers IP (Yes I know your supposed to leave it blank) but just try it anyway.

    Also are you using any 3rd party antivirus software such as Mcafee or Avast anti-virus. If you are disable them.
     
  13. Offline

    EpicMinerDude99


    Right. Would my computer's ip be the one from ipchicken.com? And plus, I'm trying to disable the anti-virus now.

    EDIT: Disabling anti-virus didn't help.
     
  14. 1. Port Forward 25565 - portforward.com
    2. delete your server properties file
    3. start up your server
    4. stop your server
    5. in the server properties file, leave the server IP empty
    6. turn on your server

    I will soon put up a video on how to setup a server.
     
  15. Offline

    saiismad823

  16. Offline

    EpicMinerDude99


    Done, there's alot of ips though. Not sure what one it is.
     
  17. Offline

    JWhy

    EpicMinerDude99: For testing you could just use 127.0.0.1, from ipconfig you'd use the IPv4-address of your preferred network adapter. Note that you'll have to use the IP specified in server-ip to connect with a Minecraft client
     
  18. Offline

    EpicMinerDude99


    Alright, I can join, but apparently when my friend tries to join with the ip 25.5.173.234, it just says 'Timed out'.
     
  19. Offline

    JWhy

    EpicMinerDude99: In order to let the server listen on all addresses you should leave server-ip= blank ;)
     
  20. Offline

    EpicMinerDude99


    But then I just have the original error of failed to bind to port..
     
  21. Offline

    JWhy

  22. Offline

    EpicMinerDude99

    [​IMG]
     
  23. Offline

    WarriorCatsDF

    I think just change the server port in server.properties to something other than 25565
     
  24. Offline

    EpicMinerDude99


    Wouldn't that mean I have to portforward all over again? I'd rather not do that..
     
  25. Offline

    WarriorCatsDF

    Oh you already did, sorry xD
    Do you have another server running on your computer?
     
  26. Offline

    EpicMinerDude99


    Nope.
     
  27. Offline

    WarriorCatsDF

    Then honestly IDK
     
  28. Offline

    tempelis

    as root use netstat -a -t --numeric-ports -p to list the ports that are in use by number and process. (On OS/X you need to use lsof)
    try and identify why it is in use. telnet <hostname> <port> and pointing a web browser at it are both good tricks.
    change the configuration of one of the programs to listen on a different port.
     
  29. Offline

    GamerAuthority

    I can't believe no one asked but have you checked if your ports are actually open?

    Please check using PortForward.com's Port Checker (click trial, port checker, enter port, select udp or tcp either one works, click check).
    I can guarantee you that this application has no virus what so ever. If someone says it does, they're wrong.

    Or use an online port checker, these aren't always accurate but its up to you which one you want to use.

    and guys. His OS is obviously Windows, what's with the OSX/Linux help?
     
  30. Offline

    tempelis

    GamerAuthority
    Read the post above yours before posting
    And who even uses online port checkers they are useless when you have one on your computer already...
     
Thread Status:
Not open for further replies.

Share This Page