Can't connect to server on local network even though ports are open


#1

I’m trying to connect to my server and it isn’t letting me for some reason. Here’s the info:

I also have Open to Lan selected in the server setup page. I can successfully SSH to the server so connecting to it doesn’t seem to be the problem. Any ideas?

The server IP in the server.properties file is set to 0.0.0.0. I’ve also tried setting it to the exact server IP and still no luck.


#2

What do your logs say?

/var/log /mineos.log <-- the log for MineOS itself
/var/games/minecraft/servers/“servername”/logs/latest.log <-- the log for the minecraft server.


#3

Some basic troubleshooting ideas to get us started:

  1. If you disable the firewall, does it connect?

    iptables -P INPUT ACCEPT
    iptables -F

  2. What’s the address you’re typing in the Minecraft? Is it your local 192.x IP address or your ISP’s public-given IP address?


#4

mineos.log shows me:

{"level":"info","message":"[Will_Miner] Server started. Waiting 10000 ms...","timestamp":"2018-05-14T20:59:07.125Z"}
{"level":"info","message":"[WEBUI] mc connected from 192.168.1.146","timestamp":"2018-05-14T21:02:09.973Z"}
{"0":"de_DE","1":"en_US","2":"fr_FR","3":"it_IT","4":"ja_JP","5":"no_NB","6":"ru_RU","7":"sv_SE","level":"info","message":"","timestamp":"2018-05-14                                                               T21:02:10.517Z"}
{"level":"info","message":"[Will_Miner] mc (192.168.1.146) joined server namespace","timestamp":"2018-05-14T21:02:10.540Z"}
{"level":"info","message":"Downloaded information for collection: Mojang Official Minecraft Jars (133 entries)","timestamp":"2018-05-14T21:02:10.687                                                               Z"}
{"level":"info","message":"[Will_Miner] transmittting existing file contents: logs/latest.log (681 bytes)","timestamp":"2018-05-14T21:02:10.724Z"}
{"level":"info","message":"Downloaded information for collection: Feed the Beast Server Packs (456 entries)","timestamp":"2018-05-14T21:02:11.488Z"}
{"level":"info","message":"Downloaded information for collection: Feed the Beast Third-Party Server Packs (312 entries)","timestamp":"2018-05-14T21:                                                               02:11.491Z"}
{"level":"info","message":"Downloaded information for collection: PaperSpigot (5 entries)","timestamp":"2018-05-14T21:02:11.499Z"}
{"level":"info","message":"Downloaded information for collection: Spigot (1 entries)","timestamp":"2018-05-14T21:02:11.500Z"}
{"level":"info","message":"Downloaded information for collection: Forge Mod (35 entries)","timestamp":"2018-05-14T21:02:11.502Z"}
{"level":"info","message":"Downloaded information for collection: Imagicalmine (1 entries)","timestamp":"2018-05-14T21:02:11.504Z"}
{"level":"info","message":"Downloaded information for collection: BungeeCord (10 entries)","timestamp":"2018-05-14T21:02:11.668Z"}
{"level":"info","message":"Downloaded information for collection: SpongeVanilla (721 entries)","timestamp":"2018-05-14T21:02:11.832Z"}
{"level":"info","message":"Downloaded information for collection: Nukkit (2 entries)","timestamp":"2018-05-14T21:02:11.837Z"}
{"level":"info","message":"Downloaded information for collection: Mianite (23 entries)","timestamp":"2018-05-14T21:02:11.837Z"}
{"level":"info","message":"Downloaded information for collection: Cuberite C++ Server (4 entries)","timestamp":"2018-05-14T21:02:12.395Z"}

and the server log shows me:

[16:59:17] [Server thread/INFO]: Loading properties
[16:59:17] [Server thread/INFO]: Default game type: CREATIVE
[16:59:17] [Server thread/INFO]: Generating keypair
[16:59:17] [Server thread/INFO]: Starting Minecraft server on 192.168.1.165:25565
[16:59:18] [Server thread/INFO]: Using epoll channel type
[16:59:18] [Server thread/INFO]: Preparing level "world"
[16:59:18] [Server thread/INFO]: Loaded 488 advancements
[16:59:18] [Server thread/INFO]: Preparing start region for level 0
[16:59:19] [Server thread/INFO]: Preparing spawn area: 6%
[16:59:20] [Server thread/INFO]: Preparing spawn area: 64%
[16:59:21] [Server thread/INFO]: Done (3.338s)! For help, type "help" or "?"

So it looks like it’s clearly seeing the connection from my desktop computer (on the same LAN) but just gives me the error of Unable to connect to world.


#5

The same thing happens when I disable the firewall. Also, I’m putting in the local 192.*** IP as the VM it’s on and my desktop are on the same LAN.


#6

Your problem is here:
{“0”:“de_DE”,“1”:“en_US”,“2”:“fr_FR”,“3”:“it_IT”,“4”:“ja_JP”,“5”:“no_NB”,“6”:“ru_RU”,“7”:“sv_SE”,“level”:“info”,“message”:"",“timestamp”:“2018-05-14 T21:02:10.517Z”}

You server halts in loading waiting for input. Start your server. Go to your mineos web ui, and the log page for your server. At the very bottom of the log you can enter commands. Simply write the number corresponding to your chosen language:
“0”:“de_DE”,
“1”:“en_US”,
“2”:“fr_FR”,
“3”:“it_IT”,
“4”:“ja_JP”,
“5”:“no_NB”,
“6”:“ru_RU”,
“7”:"sv_SE

And press enter.


#7

I looked at the log page and when I type in 1, it just tells me that it’s an Unknown command. I even tried searching for a command that looks like a locale setter and couldn’t find anything.

This is what I get when I restart the server:

[18:38:51] [Server thread/INFO]: Stopping the server
[18:38:51] [Server thread/INFO]: Stopping server
[18:38:51] [Server thread/INFO]: Saving players
[18:38:51] [Server thread/INFO]: Saving worlds
[18:38:51] [Server thread/INFO]: Saving chunks for level 'world'/overworld
[18:38:52] [Server thread/INFO]: Saving chunks for level 'world'/the_nether
[18:38:52] [Server thread/INFO]: Saving chunks for level 'world'/the_end
[18:38:52] [Server Shutdown Thread/INFO]: Stopping server
[18:39:00] [Server thread/INFO]: Starting minecraft server version 1.12.2
[18:39:00] [Server thread/INFO]: Loading properties
[18:39:00] [Server thread/INFO]: Default game type: CREATIVE
[18:39:00] [Server thread/INFO]: Generating keypair
[18:39:00] [Server thread/INFO]: Starting Minecraft server on 192.168.1.165:25565
[18:39:00] [Server thread/INFO]: Using epoll channel type
[18:39:00] [Server thread/INFO]: Preparing level "world"
[18:39:01] [Server thread/INFO]: Loaded 488 advancements
[18:39:01] [Server thread/INFO]: Preparing start region for level 0
[18:39:02] [Server thread/INFO]: Preparing spawn area: 2%
[18:39:03] [Server thread/INFO]: Preparing spawn area: 54%
[18:39:04] [Server thread/INFO]: Done (3.483s)! For help, type "help" or "?"
[18:39:13] [Server thread/INFO]: Unknown command. Try /help for a list of commands

#8

I just checked the upper right dropdown under the mc user and hit the button titled Change Localization. Nothing was selected for that so I changed it and then restarted the entire server. Still nothing different in the logs :confused:

It also seems that everytime I refresh the page or go to a new one, the above field loses the value.

The only time I see that message is when I create a new server and it shows in the mineos.log file so there’s no way for me to enter in information there.


#9
[12:51:00] [Server thread/INFO]: Starting minecraft server version 1.10
[12:51:00] [Server thread/WARN]: To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
[12:51:00] [Server thread/INFO]: Loading properties
[12:51:00] [Server thread/INFO]: Default game type: SURVIVAL
[12:51:00] [Server thread/INFO]: Generating keypair
[12:51:00] [Server thread/INFO]: Starting Minecraft server on 0.0.0.0:25565

This is what it says when server.properties has 0.0.0.0 filled in when the server starts; you still have 192.168.1.165 filled in there right now, but I think the best approach for troubleshooting is to keep it at 0.0.0.0.

I don’t see anything in the logs that suggest that an attempt was ever acknowledged, what am I missing?

I don’t believe localization is playing any part of the issue here. Side note, it doesn’t “remember” your setting, but if you’re seeing the words in the right language/it is understandable to you, then you can also ignore that part entirely (no issue).

It says “Broadcast to LAN”, which basically just makes a server show on the lobby page of the client–even with this setting off, a server can still be reached by IP.


Start a new server, don’t change any of the default settings. Set it to your 1.12.2 profile and make sure that the old server is down.

"Unable to connect to world" is different from “Could not connect to server” which typically is a connectivity issue. Unable to connect to world suggests to me some sort of protocol mismatch.

Can you confirm you’re just using a stock profile Mojang version and same with the standard Minecraft client?


#10

Thanks for the awesome reply. I’ve delete the old server and created a new one without changing any of the default settings.

Here’s part of the server.properties page:

Do you think it could be something on the OS side? IT still gives me the error of can’t connect to world.

I just checked my minecraft client (Win10) and it’s showing the client version of 1.2.13. MineOS is only allowing me to create a profile up to 1.12.2. Do you think that could be the issue?

  • Will

#11

Ah.
Well, then your problem is that you are connecting with a minecraft pocket edition to a minecraft java ediiton. Mojang has done several renames overtimes, but the version from windows 10 appstore is the same one (or coenncts to the same system as) the version for xbox, phones, and tablets.

To connect to your server you need a java version of minecraft: https://minecraft.net/en-us/

Or look into the different server versions for pocket edition (PMMP ant the like). Just be aware that none of the available private servers (the one you can download and run yourself) are official from mojang, and are lagging behind contentvice. They are struggling just to keep their server software running with the latest version of pocket edition, so things like mobs and AI are nonexistant. My reccomendation is to get the java version if you want to play on win10