I need to open Minecraft port on cpanel
I installed minecraft bedrock server on my cPanel on vps server, after many attempts to install and run the server I finally succeeded in running it, but I could not access it because the port 19132 was not opened.
I used CSF firewall and I tried very hard to open the port through it and it did not work, I even disable it completely and also opening the port did not work, and I think it was not the problem with CSF.
I get this message after running the Minecraft server and I don't know if the problem is here
[2022-11-05 23:41:24:406 INFO] Starting Server
[2022-11-05 23:41:24:406 INFO] Version 1.19.40.02
[2022-11-05 23:41:24:406 INFO] Session ID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[2022-11-05 23:41:24:407 INFO] Level Name: Bedrock level
[2022-11-05 23:41:24:407 INFO] Game mode: 0 Survival
[2022-11-05 23:41:24:407 INFO] Difficulty: 1 EASY
[2022-11-05 23:41:24:445 INFO] opening worlds/Bedrock level/db
[2022-11-05 23:41:25:961 INFO] IPv4 supported, port: 19132
[2022-11-05 23:41:25:961 INFO] IPv6 supported, port: 19133
[2022-11-05 23:41:25:196 INFO] Server started.
[2022-11-05 23:41:25:202 INFO] Please note that LAN discovery will not function for this server.
[2022-11-05 23:41:25:202 INFO] Server IP must be specified in Servers tab in game.
The server is running: CentOS v7.9.2009 STANDARD
I have root permissions on WHM
There are 3 detecated ip address on VPS and they are connected on WHM and I assigned one of them to the Minecraft server and linked it to a cPanel account for Minecraft.
-
Hey there! The easiest way to check this would be to telnet to the port from another server. You can run this command to see if that connects: telnet x.x.x.x 19132
where "x.x.x.x" is your Minecraft server's IP address. It's possible this isn't working because the port is blocked by your hosting provider at a level higher than your server, as it sounds like you've done everything right with the firewall-side of things.0 -
Hey there! The easiest way to check this would be to telnet to the port from another server. You can run this command to see if that connects:
telnet x.x.x.x 19132
where "x.x.x.x" is your Minecraft server's IP address. It's possible this isn't working because the port is blocked by your hosting provider at a level higher than your server, as it sounds like you've done everything right with the firewall-side of things.
thanks for your reply, I tried the command on the server directly through the terminal, and it didn't work. [root@117 ~]# telnet x.x.x.x 19132 Trying x.x.x.x... telnet: connect to address x.x.x.x: Connection refused0 -
You'll want to speak with your host about the firewall configuration to see if there is something outside of your server blocking this traffic. 0 -
thanks for your reply, I tried the command on the server directly through the terminal, and it didn't work. [root@117 ~]# telnet x.x.x.x 19132 Trying x.x.x.x... telnet: connect to address x.x.x.x: Connection refused
When you telnet from the other server TCP_OUT port 19132 in that server must be open, was it?0 -
You'll want to speak with your host about the firewall configuration to see if there is something outside of your server blocking this traffic.
Tried to check the port internally on the WHM via terminal and the result is that it is closed. [root@117 ~]# telnet localhost 19132 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused0 -
When you telnet from the other server TCP_OUT port 19132 in that server must be open, was it?
I opened the port through the firewall CSF, look at the picture0 -
What does this command show if you run it from the WHM server? netstat -lpn | grep 191320 -
What does this command show if you run it from the WHM server?
netstat -lpn | grep 19132
[root@117 ~]# netstat -lpn | grep 19132 udp 0 0 0.0.0.0:19132 0.0.0.0:* 22150/./ld-linux-x80 -
Does that just cut off after the "x8" ??? If so, that's odd to me, since that would normally be x86, although that is a system process. Are we sure the Minecraft server is up and running? If it is, and if it's supposed to be listening on that port, I would have expected that service to show up when we checked to see what was running on that port. 0 -
Does that just cut off after the "x8" ??? If so, that's odd to me, since that would normally be x86, although that is a system process. Are we sure the Minecraft server is up and running? If it is, and if it's supposed to be listening on that port, I would have expected that service to show up when we checked to see what was running on that port.
I think "ld-linux-x8" is the service of the minecraft server runs on. The result of the command shows the general IP of "0.0.0.0" and does not indicate the static IP of the Minecraft server. When I run the Minecraft server and run the command, this image appears When I stop the Minecraft server and run the command, nothing like this appears Note: I did not hide or modify anything on the photos0 -
Great - that's exactly what I needed to know. At this point you need to reach out to the host, since something seems to be blocking that connection outside of your server. Everything from the screenshots and commands you've included looks good, as "0.0.0.0" just indicates it is listening on any IP. 0 -
Great - that's exactly what I needed to know. At this point you need to reach out to the host, since something seems to be blocking that connection outside of your server. Everything from the screenshots and commands you've included looks good, as "0.0.0.0" just indicates it is listening on any IP.
I was previously told by Godaddy that they do not impose any restrictions on the VPS and I will call them again, but can I listening port 19132 for specific static IP "x.x.x.x" instead of any IP "0.0.0.0"?0 -
There's likely a way to do that, but it would be in the application's startup configuration, so it's not something I would be familiar with. 0 -
There's likely a way to do that, but it would be in the application's startup configuration, so it's not something I would be familiar with.
I called Godaddy and they told me there was no additional firewall behind the VPS "not sure if what he was saying", and I couldn't find a solution with them. Note: I have 3 dedicated IPs on the server and they are: x.x.x.117 = "Primary" Use it to access WHM while avoiding using it for anything for safety. x.x.x.219 = "Websites" I put it on a reseller account so I can share it with all cPanel accounts for the websites. x.x.x.42 = "Minecraft Server" I put it on a separate cPanel account to run the Minecraft server Now it came to my mind to try one of the open ports "2077" by default with the Minecraft server, and I made sure to put it in UDP_IN, and then I tried to run the server. At first this message not showing to me on minecraft server : [2022-11-05 23:41:25:202 INFO] Please note that LAN discovery will not function for this server. [2022-11-05 23:41:25:202 INFO] Server IP must be specified in Servers tab in game. Secondly, through WHM via terminal after checking the port internally, it appears to me that it works : Third: I checked the port externally through the yougetsignal website and it appeared that it was open : Finally, I tried to enter the Minecraft server through the game via the Minecraft Server IP "x.x.x.42", and I did not succeed, as it appears to me that the server is not working. Then I tried the Primary IP "x.x.x.117" from within the game and succeeded in entering through port "2077" and also through the main port of the game "19132". When examining the port "19132" on the yougetsignal website from outside on the Primary IP "x.x.x.117", through which you succeeded in entering the game, it appears that it is closed. I think the problem is with forwarding ports to IPs, I don't know how to fix it.0 -
There really isn't such a thing as "forwarding ports to IPs" - the IP is either listening on that port or it's not. Do you need port 2077 for the game? If so, that could be an issue as cPanel uses that port, as you found with your command. At this point, we've shown there aren't any issues with the cPanel system or port, so it's really up to the game and server configuration. 0 -
There really isn't such a thing as "forwarding ports to IPs" - the IP is either listening on that port or it's not. Do you need port 2077 for the game? If so, that could be an issue as cPanel uses that port, as you found with your command. At this point, we've shown there aren't any issues with the cPanel system or port, so it's really up to the game and server configuration.
I find that the problem is currently not in the port, the problem is that the port is listening to the Primary IP "x.x.x.117" only and not listening to the Minecraft Server IP "x.x.x.42 assigned to the cpanel account.0 -
That would need to get changed in the software when it starts. There aren't any external tools that will control what service a port listens on except the service itself. 0 -
That would need to get changed in the software when it starts. There aren't any external tools that will control what service a port listens on except the service itself.
So, if the port "19132" listens from all IPs on my server why i can't connect with ather IPs!!! i'm still can't connect from other IPs only from Primary IP "x.x.x.117" Are there configurations that I must do on WHM so that the server can deal with additional IPs such as "natting - routing...etc"? Note: I bought this server a few days ago and did not make any config related to the IPs. I only bought them from Godaddy and they were automatically added to the server.0 -
This really isn't an issue related to the cPanel software at this point. You'll want to work with your host or with a system administrator to see what the issue is. 0
Please sign in to leave a comment.
Comments
19 comments