"Failed to bind to port"

Discussion in 'Bukkit Help' started by alrik94, Sep 4, 2011.

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

    alrik94

    No. I am not some 12 year old trying to run a puny little Minecraft server on his own computer. So lets rule that out.

    Computer info:
    • OS: Windows 7 Home Premium 64-bit
    • java version "1.7.0"

    Here is my problem:

    Bukkit will not start up on ANY port. I have my IP set to blank on the server.properties. I feel as if a program on my computer is somehow blocking all the ports. I have my Anti-Virus disabled, also.

    Code:
    2011-09-04 20:58:49 [INFO] Starting minecraft server version Beta 1.7.3
    2011-09-04 20:58:49 [INFO] Loading properties
    2011-09-04 20:58:49 [INFO] Starting Minecraft server on *:25565
    2011-09-04 20:58:49 [WARNING] **** FAILED TO BIND TO PORT!
    2011-09-04 20:58:49 [WARNING] The exception was: java.net.BindException: Cannot assign requested address: JVM_Bind
    2011-09-04 20:58:49 [WARNING] Perhaps a server is already running on that port?
    Code:
    2011-09-04 20:59:01 [INFO] Starting minecraft server version Beta 1.7.3
    2011-09-04 20:59:01 [INFO] Loading properties
    2011-09-04 20:59:01 [INFO] Starting Minecraft server on *:27846
    2011-09-04 20:59:01 [WARNING] **** FAILED TO BIND TO PORT!
    2011-09-04 20:59:01 [WARNING] The exception was: java.net.BindException: Cannot assign requested address: JVM_Bind
    2011-09-04 20:59:01 [WARNING] Perhaps a server is already running on that port?
    Really... nothing is working. I have searched every thread I can find on here and nothing seems to have the solution I need.

    If it is something small I might have missed, please don't flame at me too much :D

    (Edit): Could it be because I am using the Java 7 beta?

    What if I am just trying to run a local server? I'm pretty sure I don't need to do any port forwarding to run a server on my local network.

    I've never had to do anything like this before... How exactly does one do this on a local network?

    I have the port forwarded on my router right now.

    Port range: 25565-25565
    Protocol: TCP
    to LAN IP: 192.168.0.4

    Everything is all setup. I just don't understand how this can affect me running a server on my local machine (127.0.0.1).

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

    Supersam654

    It doesn't, I think that@Orcem12 is a little confused.

    With that said, try going back to Java 6 (I believe 6.27). Although Java 7 is no longer beta, I have seen some bizarre Bukkit problems that end up being caused by Java 7.
     
  3. Offline

    alrik94

    Ok, thank you! I will try that.
     
  4. Offline

    Chrisward

    Uh, you don't need to port forward on a local network. I've done it. But I have no idea what could be causing this error
     
  5. Port forwarding makes no difference whatsoever if he's getting a port bind exception.

    This happens when 2 applications are trying to use the same port. Either change the port your server runs on or find what application is using that port, could be Skype or uTorrent or the likes.
     
  6. Offline

    Orcem12

    @Adamki11s


    oooooo yeah... I am stupid. I apologize. I need to sleep tonight for sure.
     
    Adamki11s likes this.
  7. Offline

    alrik94

    I've already done a netstat on my computer and nothing is showing up for the ports I use. The problem really is that this happens on every port I try to use when starting up my server.

    And I tried install Java 6 Update 27. Still not starting up. I have also tried redownloading the Bukkit server jar and it still doesn't work :p

    I am really at a loss.

    Edit: And way to make me look like I quadruple posted, Orcem :/
     
  8. Offline

    Supersam654

    How many ports have you tried? Also, any port below 1024 doesn't count.
     
  9. Offline

    alrik94

    I've tried many, many ports from the 20000s-40000s. There can't possibly programs taking up over 20000 ports. I checked the System Resource Monitor and there are no programs utilizing any of the ports I try. I also did netstat o n cmd.exe. I completely uninstalled and reinstalled my Java runtimes and still nothing works.
     
  10. Offline

    Killburner

    Post your server.properties file.

    I'm sure you've done this, but make sure there are no other java.exe processes running in Task Manager. A restart would have killed them, but it doesn't hurt to check.
     
  11. Offline

    alrik94

    Code:
    #Minecraft server properties
    #Thu Sep 01 14:55:24 PDT 2011
    online-mode=true
    pvp=true
    allow-flight=false
    spawn-animals=true
    server-ip=
    server-port=25565
    
    
    
    Already killed all java.exe processes. I've restarted and everything.
     
  12. Offline

    Supersam654

    When you try using a different port, you need to change that in your server.properties file. I believe that another application is using 25565 and you can't test another port unless you change it in this file. I once saw someone with this issue because a torrent program was using 25565.
     
  13. Offline

    alrik94

    I am not stupid lol. I know you have to change it in the server.properties.

    Ok, so this time I got it to work. Instead of leaving the server-ip blank I added my local IP address instead. It loaded up and everything. I don't know why it won't work when I leave it blank, though. It used to :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
Thread Status:
Not open for further replies.

Share This Page