Solved: Server Does Not Allow Connections

Hello

I’m not sure why this is happening, but here’s the gist of things:

I’m attempting to run a modded minecraft server with Forge 1.8.9. However, when I attempt to connect to the server, it only says “Connecting to Server” and then kicks me off for taking to long to connect. My console says the spawn area is prepared, everything is done, and people should be allowed to come on.

At first, I thought it was a problem with Forge, but when I tried to create a Vanilla 1.10 server it had the same problem.

I’m not sure what to do, and any help is appreciated.

Thank you in advance

Also, I’m new to this forum and I’m a fairly young server owner. If any of this is too vague please ask and I’ll try to provide more information.

What port are you trying to host minecraft on–is it different from the default 25565?

Are you trying to connect locally (as in with your 192.x.x.x address)?

My port is 25566 and 25567, and I’m attempting to connect locally.

Those are non standard Minecraft ports (standard port = 25565). How are you connecting in your client? Remember that you need to specify the port you wish to connect to in the client:

in the adress field:
[ip-adress]:2556*
Example:
192.168.1.10:25566

I specified the correct port. I also made sure it wasn’t blocked via firewall.

My direct connect is
[Ip-address here]:25566

I also tried with some other people connecting externally using the external IP, and they had the same problem.

These ports are not blocked by firewall at all.
Again, sorry for lack of information. I’m young and have some trouble understanding all this.

It would help if we could see the server log for your server.

I seem to have lost the logs for my server. I just tried to connect again.

Here are the logs for today:

[17:55:48] [Server thread/INFO]: Done (7.975s)! For help, type “help” or “?”
[17:55:47] [Server thread/INFO]: Preparing spawn area: 94%
[17:55:46] [Server thread/INFO]: Preparing spawn area: 73%
[17:55:45] [Server thread/INFO]: Preparing spawn area: 55%
[17:55:44] [Server thread/INFO]: Preparing spawn area: 42%
[17:55:43] [Server thread/INFO]: Preparing spawn area: 28%
[17:55:42] [Server thread/INFO]: Preparing spawn area: 18%
[17:55:41] [Server thread/INFO]: Preparing spawn area: 9%
[17:55:40] [Server thread/INFO]: Preparing start region for level 0
[17:55:40] [Server thread/INFO]: Preparing level “Creative”

As you can see, me trying to join doesn’t even show up.

Is this the entire log?
If it is, it is indicating that your server request are not arriving at your server at all

This is the entire log.

Other people’s requests aren’t entering the server either, however we can connect to other servers easily. (Other serves being Hypixel, Mineplex, and an existing server I owe that is on the 25565 port.)

other servers on your mineos-installation? Or other servers in general.

server requests not arriving usually means a network related problem. Are you sure your port is not blocked by MineOS’s firewall?

I made sure the port was not blocked by the MineOS firewall, and we can connect to one other server on my installation and other servers in general with ease. The server on my installation has the port 25565.

Is 25565 the only port open in your MineOS firewall?
You need to open all ports used by minecraft servers. so for your 25566 and 25567 servers you need to have those two ports open in the firewall as well.

If you ssh into the MineOS server and use the command

sudo iptables --list

what do it say? Please provide the entire output, including the line where you wrote the command.

I will look into that, but I’m not sure how to access ssh.

I’ll figure it out sometime this evening and let you know what I see.

Thank you for your help so far!

You need a console program, like putty : http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

You can read about using putty here:
https://the.earth.li/~sgtatham/putty/0.67/htmldoc/Chapter2.html

iMelsom

I logged into ssh and I did the command you asked for

Here’s the output:

root@core ~# iptables --list
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all – anywhere anywhere
ACCEPT tcp – anywhere anywhere tcp dpt:ssh
ACCEPT tcp – anywhere anywhere tcp dpt:http
ACCEPT tcp – anywhere anywhere tcp dpt:http-alt
ACCEPT tcp – anywhere anywhere tcp dpt:12320
ACCEPT tcp – anywhere anywhere tcp dpt:12321
ACCEPT tcp – anywhere anywhere tcp dpt:25565
ACCEPT all – anywhere anywhere state RELATED,ESTABLISHED

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Thank you for all your help, but I managed to figure it out. For some reason the firewall seemed to reset it’s allowed ports.

Here is the output now:

root@core ~# iptables --list
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all – anywhere anywhere
ACCEPT icmp – anywhere anywhere icmp echo-request
ACCEPT all – anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp – anywhere anywhere tcp dpt:ssh
ACCEPT tcp – anywhere anywhere tcp dpt:http-alt
ACCEPT tcp – anywhere anywhere tcp dpt:12320
ACCEPT tcp – anywhere anywhere tcp dpt:12321
ACCEPT tcp – anywhere anywhere tcp dpt:25565
ACCEPT tcp – anywhere anywhere tcp dpt:25566
ACCEPT tcp – anywhere anywhere tcp dpt:25567
ACCEPT tcp – anywhere anywhere tcp dpt:25564

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

No problem :slight_smile:

I am sorry I pushed the point on the firewall, but it was the only logical point of error matching your symptoms.

Remember to save your iptables rules:

https://minecraft.codeemo.com/mineoswiki/index.php?title=Iptables

1 Like