Cannot connect from external IP. Read timed out

Discussion in 'Bukkit Help' started by Dumpshock, Apr 28, 2011.

  1. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Running into an issue with the new Recommended build 733.

    I can connect to my server from the same machine the server is running from, but cannot connect from any internal IP or my external IP.

    1. What OS are you using? - Windows 7 Ultimate
    2. What architecture is the OS you are running? - x64
    3. What version and architecture is your java install? - 1.6.0_24
    4. Are you running any wrappers? - No
    5. What build of CraftBukkit are you running? 733
    6. What command are you using to run your CraftBukkit server?

    @Echo off
    java -Xms1024M -Xmx1024M -jar craftbukkit.jar nogui
    exit

    or

    @Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit.jar
    exit

    7. What plugins are you running? - None (For testing purposes)
    8. What error are you getting (post your server.log file if possible)?

    Client:
    Internal exception: java.net.SocketTimeoutException: Read timed out

    Server:
    Code:
    2011-04-27 15:24:29 [INFO] Starting minecraft server version Beta 1.5_02
    
    2011-04-27 15:24:29 [INFO] Loading properties
    
    2011-04-27 15:24:29 [INFO] Starting Minecraft server on *:25565
    
    2011-04-27 15:24:30 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-700-gf3ae4c3-b733jnks (MC: 1.5_02)
    
    2011-04-27 15:24:30 [INFO] Preparing level "world"
    
    2011-04-27 15:24:30 [INFO] Preparing start region
    
    2011-04-27 15:24:31 [INFO] Preparing spawn area: 73%
    
    2011-04-27 15:24:31 [INFO] Done (0.144s)! For help, type "help" or "?"
    
    2011-04-27 15:24:41 [INFO] Dumpshock [/**.***.***.***:*****] logged in with entity id 131
    
    2011-04-27 15:25:03 [SEVERE] java.net.SocketException: Connection reset by peer: socket write error
    
    2011-04-27 15:25:03 [SEVERE]     at java.net.SocketOutputStream.socketWrite0(Native Method)
    
    2011-04-27 15:25:03 [SEVERE]     at java.net.SocketOutputStream.socketWrite(Unknown Source)
    
    2011-04-27 15:25:03 [SEVERE]     at java.net.SocketOutputStream.write(Unknown Source)
    
    2011-04-27 15:25:03 [SEVERE]     at java.io.DataOutputStream.writeByte(Unknown Source)
    
    2011-04-27 15:25:03 [SEVERE]     at net.minecraft.server.Packet31RelEntityMove.a(SourceFile:66)
    
    2011-04-27 15:25:03 [SEVERE]     at net.minecraft.server.Packet.a(Packet.java:121)
    
    2011-04-27 15:25:03 [SEVERE]     at net.minecraft.server.NetworkManager.e(NetworkManager.java:96)
    
    2011-04-27 15:25:03 [SEVERE]     at net.minecraft.server.NetworkManager.d(NetworkManager.java:230)
    
    2011-04-27 15:25:03 [SEVERE]     at net.minecraft.server.NetworkWriterThread.run(SourceFile:90)
    
    2011-04-27 15:25:03 [INFO] Read timed out
    
    2011-04-27 15:25:03 [INFO] Dumpshock lost connection: disconnect.genericReason
    
    9. What have you tried already? -
    Ports are correctly opened on router and firewall.
    Re-downloaded Minecraft client.
    Re-downloaded Bukkit .jar.

    10. Have you tried any of the things below?

    Run the vanilla Minecraft server. Yes, received No error.

    Update your CraftBukkit Build. Running latest recommended 733

    Remove all your plugins and try with just CraftBukkit. Running stock build, no plugins, new map.
  2. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Any help at all?

    Or did I follow directions too well in gathering my information and just bump myself right off the table for getting any support? :p
  3. Offline

    klutch2013

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    try connecting to "localhost" in your IP and see if it does the same thing.
  4. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That was described in my first post.

    It connects on the same machine as the server. It doesn't connect from any other machine.

    Server is running on home desktop. I can run Minecraft on there and connect internally (IE. from desktops IP or Localhost), connecting from an external IP doesn't connect. On my Laptop or anywhere else, either from an internal or external IP, I cannot get it to connect.
  5. Offline

    Tzahi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I don't think the server ip should be left blank. You should portforward your ipv4 address and put your ipv4 address in the server ip line in the server.properties.
  6. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ServerIP is actually best left blank in properties. If I set it to my internal IP, then it will only allow connections from internal (from my experience at least, correct me if i'm wrong).

    For giggles, I just tried it, no dice. Can't connect from internal IP, and External IP gets a connection refused instead of the normal error. Like said as well in OP, all port forwards are fine.

    The server was running beautifully before the 1.5 update to Minecraft.
  7. Offline

    klutch2013

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    try putting your external IP there
  8. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I refer to this link:
    http://www.minecraftwiki.net/wiki/Server.properties#server-ip

    Binding my server to my modem instead of the computer its sitting on didn't help. Just created a error instead on failing to bind to port.

    Code:
    2011-04-27 20:36:45 [INFO] Starting minecraft server version Beta 1.5_02
    
    2011-04-27 20:36:45 [INFO] Loading properties
    
    2011-04-27 20:36:45 [INFO] Starting Minecraft server on **.***.***.***:25565
    
    2011-04-27 20:36:45 [WARNING] **** FAILED TO BIND TO PORT!
    
    2011-04-27 20:36:45 [WARNING] The exception was: java.net.BindException: Cannot assign requested address: JVM_Bind
    
    2011-04-27 20:36:45 [WARNING] Perhaps a server is already running on that port?
    
    2011-04-27 20:36:49 [SEVERE] java.lang.NullPointerException
    
    2011-04-27 20:36:49 [SEVERE]     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
    
    2011-04-27 20:36:49 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:291)
    
    2011-04-27 20:36:49 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    2011-04-27 20:36:49 [SEVERE] Unexpected exception
    java.lang.NullPointerException
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:291)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-04-27 20:36:50 [INFO] Stopping server
    
    2011-04-27 20:36:50 [INFO] Stopping server
    
  9. Offline

    Firest Scarlet

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I actually have the same problem, and didn't have any success in solving it. Any external IP can't connect to my server, but i can, in the exact same conditions as you.
  10. Offline

    klutch2013

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    can both of you post up your server properties file and also,

    Close the server software. Ctrl + Shift + Esc to task manager Go to the processes tab. Sort alphabetically; look for all javaw.exe and end them.
    Reopen the server software.

    taken from:
    http://www.minecraftforum.net/viewtopic.php?f=1013&t=22790
  11. Offline

    mughi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    THIS IS INCORRECT

    server ip should almost always be blank
  12. Offline

    Firest Scarlet

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Code:
    #Minecraft server properties
    #Mon Apr 25 14:28:32 BRT 2011
    level-name=world
    hellworld=false
    spawn-monsters=true
    online-mode=true
    spawn-animals=true
    max-players=20
    server-ip=
    pvp=false
    level-seed=
    server-port=25565
    allow-flight=false
    white-list=false
    spawn-protection=16
    Here are my properties.
    Also, your other solution didn't work for me.
  13. Offline

    mughi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    do you have any other entries in your firewall referring to java or minecraft? these could conflict with the four that you actually need
  14. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Good to see I'm not alone here!

    Glad to see I'm on the right track here as well!

    Not that I've found. Windows Firewall is currently off, but I still have entries to allow the port through inbound and outbound on TCP and UDP.

    I think I might have found that the server works when running from my laptop, still not from my desktop, meaning it would be a localized issue I think.

    I am still testing this theory at the moment, but will post back on the results.
  15. Offline

    klutch2013

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    are you running Windows 7 SP1? because there was another person on the forums that also had an issue connecting to his server when it was running Sp1.
  16. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    SP1 is neither on my Desktop or my Laptop.
  17. Offline

    Tzahi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    But I put in my ipv4 address. I don't get how that is bad.
  18. Offline

    mughi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    putting in any address makes it so the server ONLY talks to that 'network' that's why it says 'bind to port'

    you want it to be available to all ip addresses your computer uses
  19. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So just an update.

    Desktop is sitting on 192.168.1.103.
    Laptop is on 192.168.1.104.

    When server is running on Desktop, Can connect to own server either by localhost or 192.168.1.103, etc.
    Laptop cannot connect to Desktop server.

    When server is running on Laptop however at 192.168.1.104, there are no issues, Desktop on .103 can connect over.

    I thought maybe it was a borked Java install, so removed Java completely from desktop and reinstalled x64 Java latest which was just updated to 1.6.0_25.

    Still no dice.

    I can't find any differences between the two machines that would cause this except that my laptop is running Java 1.6.0_20 x64.
  20. Offline

    mughi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    the OLDER java works?

    ...unless.. um.. when running on laptop, can the LAPTOP connect to itself?
  21. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yeah, the older Java worked fine oddly enough. Leaves me scratching my head.

    And yes, Laptop is capable of connecting to itself.

    EDIT: Just for matter of completeness, I ripped out the old Java and installed the newest version.

    Laptops still working fine.
    :-\
  22. Offline

    mughi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    rats.. was thinking maybe it was a client issue on the laptop

    and both firewalls are configured the same?
  23. Offline

    mughi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    .... your laptop is wireless and your desktop is wired, right?

    any chance your desktop network card needs
    a) new drivers
    b) new cable/reseated cable
    c) replaced/reseated
    d) weird software config?
  24. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Herp da Derp....

    Thank you mughi, that made me remember there were issues previous with the Atheros chipset.

    Updated the Atheros drivers on my motherboard and I'm at least able to now connect over my local LAN.

    Having some router issues thats preventing my ports from forwarding properly so I can't quite test external connections, but I think you nailed it spot on. :)
  25. Offline

    mughi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    .. i got lucky :)

    actually, what motherboard do you have? we have another guy w/ a similar issue that we can't figure out
  26. Offline

    Dumpshock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Its a ASUS P5L-MX LGA 775 Micro board I picked up a few years ago.

    Havn't really had much of a chance to upgrade in a while. ^_^

Share This Page