Minecraft Connection
So here is what I have done.
1. Linode 2048 running Ubuntu 16.10
2. Followed this guide.
3. Secured following this guide
4. Minecraft server fires up without any errors. Things look good.
5. Can't connect from client.
6. Tried on a few other Macs in the house, same deal.
Netstat shows we are listening.
tcp6 0 0 0.0.0.0:25565 [::]:* LISTEN
Screenshot of Minecraft Connection Failure:
Process:
minecra+ 26278 4.8 22.8 3517316 466356 pts/0 Sl+ 04:21 0:23 java -Xms1024M -Xmx1536M -jar minecraft_server.1.10.2.jar -o true
Any ideas? Thanks!
4 Replies
(the status shown in your screen shot is indicating it did not get a reply to a UDP packet with server status, sometimes even with everything working I have to refresh to see the current server status)
The main connection is via TCP and unless you changed the port uses port 25565 (the status is on the same port but UDP) so both TCP/UDP ought to be allowed in any firewall, If UDP is blocked you can still connect to the server, but it will never tell you on the servers screen the online status/number of players.
PS If you actually want Minecraft to bind to the IPv4 stack, you might be able to modify the line that starts Java by adding the following so the JVM knows you want IPv4:
-Djava.net.preferIPv4Stack=true
Thanks so much for the replies.
That URL is for Droplr, I use it everyday at my job. It's like imgur but it's fast and does not have any ads.
You are right, nothing is listening on IPv4. Just IPv6.
I am running with the parameter you suggested.
minecra+ 16596 26.5 20.1 1983804 411272 pts/0 Sl+ 17:22 0:14 java -Xmx1024M -Xms1024M -Djava.net.preferIPv4Stack=true -jar minecraft_server.1.10.2.jar nogui
But that does not seem to work.
# netstat -al | grep 25565
tcp6 0 0 0.0.0.0:25565 [::]:* LISTEN
The error I am getting in the Minecraft client is Timed Out.
So the issue is that the server is not listening on IPv4 and I need to figure out how to force that. Is that about right?
telnet 127.0.0.1 25565
If nothing is really listening on IPv4 then telnet should complain right away with:
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
If you get something, then the server is listening so I'd assume a firewall port needs to be open. You might also check from your client (home I assume) and run (assumes you have Linux at home and nmap installed):
sudo nmap -P0
You should see something listening on port 25565 on your server.
If not, and assuming the server has both the Minecraft server listening and the firewall (like ufw) has a port open (assumes you have a firewall installed and active on the server) then check your home client machine for a block outgoing and your home router for some type of block outgoing to that port.
If you're not sure if you have a firewall running on your server, check for a log like /var/log/auth.log or secure.log or ufw.log and see if it shows that it's blocking incoming to port 25565, assuming the Minecraft server is listening on IPv4.