Im trying to set up a minecraft server on a centos 7 vm so that my friends and I can play. I've been following a guide on how to set it up and was able to make it all the way through until the actual connecting to the server part.

I've made sure there is a port exception for 25565, and when I use ss -natu it shows the the port is listening for a connecting from java... though everytime I try to connect I keep getting the io.netty.channel.abstractchannel$annotatedconnectexception connection timed out error.

Not sure if I dont have the firewalld set up properly or if something else is the matter.

Thanks for reading and any help is much appreciated! If you need more info just ask and I will try to get it to you as quick as possible.

  • 1
    Are you sure that the port forwarding works the same when using a VM? It might not appear as its own device in your router, in that case you might only grant access to the host system, not the VM. Oct 3, 2019 at 12:17
  • Sometimes the port forwarding on a VM may not be seen through the host machine. You can check quickly by performing a test with tools like canyouseeme. If the tool can see the server then the firewall is setup correctly. If not, then the firewall is an issue.
    – GipsyD
    Jun 24, 2021 at 11:29

1 Answer 1


Are you using bridged or NAT mode on your VM? Also, on CentOS, SELinux may be preventing you from connecting. Check out this link for instructions on how to work around that.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .