It just stopped working?

Discussion in 'Bukkit Help' started by Lovetofly28, May 4, 2012.

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

    Lovetofly28

    Hello all,
    I'm not really new to minecraft, as I've been using a Bukkit Server for a while now, but as of today I haven't been able to get it started. I run the server off Windows 64 bit with a .bat file, working every day before, and today when I started it it said that the server might be running on another port, and it couldn't start. I use port forwarding to get clients to connect, so the ip I enter into the server.properties file is the ip that's associated under the port forwarding server address under my router settings. The port number stays the same as well, 25565. Like I said it worked perfectly and now the server wont start, I've tried changing the ip and the port, restarting and trying it on different computers... Any help would be appreciated. Below are the server logs as well as the .properties file and the .bat file I use (which works). I appreciate any help, I can also supply more information if needed, thanks!

    -Logs-
    2012-05-04 22:17:58 [INFO] Starting minecraft server version 1.2.5
    2012-05-04 22:17:58 [INFO] Loading properties
    2012-05-04 22:17:58 [INFO] Starting Minecraft server on 192.168.1.248:25565
    2012-05-04 22:17:58 [WARNING] **** FAILED TO BIND TO PORT!
    2012-05-04 22:17:58 [WARNING] The exception was: java.net.BindException: Cannot assign requested address: JVM_Bind
    2012-05-04 22:17:58 [WARNING] Perhaps a server is already running on that port?
    2012-05-04 22:18:03 [SEVERE] java.lang.NullPointerException
    2012-05-04 22:18:03 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:591)
    2012-05-04 22:18:03 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:455)
    2012-05-04 22:18:03 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    2012-05-04 22:18:03 [SEVERE] Unexpected exception
    java.lang.NullPointerException
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:591)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:455)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    2012-05-04 22:18:04 [INFO] Stopping server
    2012-05-04 22:18:04 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    2012-05-04 22:18:04 [SEVERE] at java.util.ArrayList.RangeCheck(Unknown Source)
    2012-05-04 22:18:04 [SEVERE] at java.util.ArrayList.get(Unknown Source)
    2012-05-04 22:18:04 [SEVERE] at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:408)
    2012-05-04 22:18:04 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:479)
    2012-05-04 22:18:04 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    -End-

    -Properties-
    #Minecraft server properties
    #Fri May 04 22:11:45 EDT 2012
    allow-nether=true
    level-name=world
    enable-query=false
    allow-flight=false
    server-port=25565
    level-type=DEFAULT
    enable-rcon=false
    level-seed=
    server-ip=192.168.1.248
    max-build-height=256
    spawn-npcs=true
    white-list=false
    spawn-animals=true
    online-mode=true
    pvp=true
    difficulty=1
    gamemode=0
    max-players=5
    spawn-monsters=true
    generate-structures=true
    view-distance=10
    motd=A Minecraft Server
    -End-

    -Run.bat-
    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar server.jar
    PAUSE
    -End-
     
  2. Offline

    Generation Blue

    try restarting your computer or re-installing java, im no expert but when i see
    Code:
    Perhaps a server is already running on that port?
    something is up
     
  3. Offline

    Lovetofly28

    Tried it, same problem, nothing changed. Any other ideas? .
     
  4. Offline

    Jade

    Restart your computer and router as a whole. That clears ports.
     
  5. Offline

    Lovetofly28

    Just tried it, sounded like it would work, didn't. Same error, nothing changed. Any other ideas? It was working perfectly until today...
     
  6. Offline

    Jade

    That's really odd, you'll need someone more network-savvy than myself, then, sorry! :\

    Change server-ip=192.168.1.248
    to server-ip=
    Just server-ip=
    :)

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

    Buskaroo

    "Failed to bind to port" normally means your already have a process using that port, have you been using more than one computer on the same router to host at different times? If so, try knocking them all off/restarting and check the router settings to make sure everything is still straight.

    Also remove the IP from your .properties
     
  8. Offline

    Lovetofly28

    Well I removed the ip from the .properties, and the server starts, but people can't connect. Isn't that because the server isn't bound to the ip because I removed it from the .properties? At least now it starts, but how can I get them to connect with my port forwarding? I checked and everything looks straight. Ideas?
     
  9. Offline

    Buskaroo

    -Make sure your ipv4 address is correct in your router settings.
    -Make sure you're allowing both tcp and udp.
    -Make sure your firewalls are down.
     
  10. Offline

    Lovetofly28

    The firewalls are down, the ip I have set for the port forwarding is correct and tcp/udp is enabled. Basically, the server is up, I enter the ip set in my router settings for port forwarding, with the port number, and I can't connect, of course I can connect with local host, but no one else can. Other suggestions?
     
  11. Offline

    Buskaroo

    You're giving people your external IP right?
     
  12. Offline

    Lovetofly28

    Yes, not the internal, am I wrong? I've tried both though. Nothing's working.
     
  13. Offline

    Buskaroo

    Yeah the external is correct, normally if all the routing properties are correct and people still cannot contact the server, it's a firewall issue, disable any firewall you have (Router, anti-virus, windows default) just for the sake of testing and give it a go.
     
  14. Offline

    Lovetofly28

    I use Webroot and I disabled the firewall and nothing changed, but what I'm so confused about is I've always put the internal ip in the .properties file, and its always worked when I've given the external with the port number to others, and they can connect. I have the server up, so how can I get them to connect?
     
  15. Offline

    Buskaroo

    I'm not sure then, I only had connection issues once and that was when my firewall was blocking everyone from connecting (then I realized I use linux and didn't need one xD).

    I know it never worked for me when I had the IP in the properties, but outside of that, I don't know what the problem is and can't help you :/
     
Thread Status:
Not open for further replies.

Share This Page