Can't connect to MC Server Locally or Externally

Hey all, I attempted to get a server running tonight using MineOS in FreeNAS but seem to be having an issue connecting to the server in Minecraft.

I attempted to use both Spigot and vanilla to test connectivity but can’t seem to figure out why minecraft won’t see the server. I managed to get myself fairly familiar with the WebUI and have no issue in that regard. The server appears to be up according to the WebUI and the server log looks about the same as every other Minecraft server I’ve run. All signs point to go, but when I attempt to connect to the server within Minecraft itself (using the local IP of the server) it gives a ‘connection refused by host’ error. I know minecraft has no issue connecting to other servers as I was able to connect to the hypixel server, so it’s more than likely server side. I have run MC servers on windows before and have had no issues with my current network.

------------ Logs ------------

Starting server with 0.0.0.0 as IP - Log from console

[03:42:11] ain/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[03:42:11] ain/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[03:42:11] ain/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[03:42:11] ain/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[03:42:11] ain/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[03:42:11] [Server thread/INFO]: Starting minecraft server version 1.15.2
[03:42:12] [Server thread/INFO]: Loading properties
[03:42:12] [Server thread/INFO]: Default game type: SURVIVAL
[03:42:12] [Server thread/INFO]: Generating keypair
[03:42:12] [Server thread/INFO]: Starting Minecraft server on 0.0.0.0:25565
[03:42:12] [Server thread/INFO]: Using default channel type
[03:42:12] [Server thread/INFO]: Preparing level "world"
[03:42:12] [Server thread/INFO]: Reloading ResourceManager: Default
[03:42:13] [Server thread/INFO]: Loaded 6 recipes
[03:42:13] [Server thread/INFO]: Loaded 825 advancements
[03:42:19] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[03:42:20] [Server thread/INFO]: Preparing spawn area: 0%
[03:42:20] [Server thread/INFO]: Preparing spawn area: 0%
[03:42:20] [Server thread/INFO]: Preparing spawn area: 41%
[03:42:21] [Server-Worker-2/INFO]: Preparing spawn area: 83%
[03:42:21] [Server-Worker-3/INFO]: Preparing spawn area: 83%
[03:42:21] [Server-Worker-1/INFO]: Preparing spawn area: 83%
[03:42:22] [Server-Worker-3/INFO]: Preparing spawn area: 83%
[03:42:22] [Server-Worker-3/INFO]: Preparing spawn area: 83%
[03:42:23] [Server-Worker-1/INFO]: Preparing spawn area: 89%
[03:42:23] [Server thread/INFO]: Time elapsed: 4455 ms
[03:42:23] [Server thread/INFO]: Done (11.485s)! For help, type "help"

Starting server with internal IP (192.168.86.178) - Log from console

[03:40:49] ain/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[03:40:49] ain/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[03:40:49] ain/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[03:40:49] ain/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[03:40:49] ain/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[03:40:49] [Server thread/INFO]: Starting minecraft server version 1.15.2
[03:40:49] [Server thread/INFO]: Loading properties
[03:40:49] [Server thread/INFO]: Default game type: SURVIVAL
[03:40:49] [Server thread/INFO]: Generating keypair
[03:40:49] [Server thread/INFO]: Starting Minecraft server on 192.168.86.178:25565
[03:40:49] [Server thread/INFO]: Using default channel type
[03:40:49] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[03:40:49] [Server thread/WARN]: The exception was: java.net.BindException: Can't assign requested address
[03:40:49] [Server thread/WARN]: Perhaps a server is already running on that port?
[03:40:49] [Server thread/INFO]: Stopping server
[03:40:49] [Server thread/INFO]: Saving worlds
[03:40:49] [Server thread/ERROR]: Exception stopping the server
java.lang.NullPointerException: null
at net.minecraft.server.MinecraftServer.a(SourceFile:559) ~inecraft_server.1.15.2.jar:?]
at net.minecraft.server.MinecraftServer.s(SourceFile:587) ~inecraft_server.1.15.2.jar:?]
at wd.s(SourceFile:597) ~inecraft_server.1.15.2.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:689) inecraft_server.1.15.2.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]

I know this is a repetitive topic, but I haven’t found a solution to this issue. I have no idea if FreeNAS might be preventing MineOS from using that port, or if it’s something I configured wrong. Feel free to ask for any other information that might be needed to diagnose this. Thanks in advance!

Well, with nobody replying, I decided to experiment. I uninstalled the MineOS plugin and reinstalled it but chose DHCP instead of NAT so that MineOS would grab its own IP. Seems like FreeNAS might have been using that port or blocking it from being used on the network. Either way, that solved it, and now I can access my server locally and externally. If you also have issues with MineOS and FreeNAS I’d suggest attempting this workaround. This tool can be very useful for checking if your ports are open externally, and if someone outside of your network can see and connect to your server.

1 Like