Minecraft Server connection refused (process running on 25565 being detected)

I am running around in circles trying to connect to my recently set-up Minecraft server. The Minecraft server is installed and running on my Ubuntu (12.04 LTS) machine. I have opened the port 25565 on my router without any problems and did a test using canyouseeme.org.

Test results:

port 25565 test

As you can see, the process (the server) is being detected and not blocked on port 25565.

Screenshot of server.properties:

enter image description here

server.log content after I tried to connect via external ip and then localhost:

2014-01-26 01:35:40 [INFO] Done (0.920s)! For help, type "help" or "?"
2014-01-26 01:40:08 [INFO] /*censored*:46013 lost connection
2014-01-26 01:40:19 [INFO] /*censored*:46022 lost connection
2014-01-26 01:41:34 [INFO] Disconnecting /192.168.1.33:47124: Protocol error
2014-01-26 01:41:34 [INFO] /192.168.1.33:47124 lost connection
2014-01-26 01:41:43 [INFO] Disconnecting /192.168.1.33:47125: Protocol error
2014-01-26 01:41:43 [INFO] /192.168.1.33:47125 lost connection
  • Connection to server is being refused both when added and using direct connect.
  • I am using the format global-ip:port when connecting but I've also tried just using the ip address.
  • The server and client are both running version 1.7.4.
  • It's a vanilla server.

I have searched high and low and tried everything I could find but alas still no luck. Could anyone please shed a light on what I am missing?


There are two possible reasons why you are getting the protocol error disconnects that I can think of.

  1. Your Minecraft Client and Minecraft Server are running different versions of the game. Check that those match, that you are not using a server.jar from 1.6 and a minecraft client of 1.7.4.

  2. You have a local firewall rule enabled that is not allowing you to connect properly.


Here are a few things to try:

  1. If you are running both the client and server on the same computer, connect using 127.0.0.1 as the IP address (localhost), if you are running the server and client on your local home network, but on different machines, try connecting using the local IP address. If you do not get the connection refused error, you could have a problem with port forwarding. If you do get the error try the following.

  2. In your configuration you have the setting "online-mode=true", try setting this to false and connecting using the above methods. Normally this setting only causes problems for users who have not paid for the full version of the game and/or are not using the official launcher. If you are able to connect using this please clarify whether or not you have paid for the game and if you are using the official launcher or not (the launcher you get from minecraft.net)

  3. As mentioned above, check your firewall rules and maybe try connecting with your security program disabled (re enable it after this). If you are able to connect you will need to find out how to change your firewall/security program settings to allow java to recieve global traffic.

  4. Kick your computer, it won't help but people seem to do it anyways ;D

  5. You may be running multiple instances of the server. If so, you may want to kill (terminate) the java processes that are running them. If you're running the server and game on your computer, be sure not to kill your game's process.