Skip to main content

I need to open Minecraft port on cpanel

Comments

19 comments

  • cPRex Jurassic Moderator
    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
  • EagleDotNet
    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 refused
    0
  • cPRex Jurassic Moderator
    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
  • quietFinn
    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
  • EagleDotNet
    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 refused
    0
  • EagleDotNet
    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 picture
    0
  • cPRex Jurassic Moderator
    What does this command show if you run it from the WHM server? netstat -lpn | grep 19132
    0
  • EagleDotNet
    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-x8
    0
  • cPRex Jurassic Moderator
    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
  • EagleDotNet
    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 photos
    0
  • cPRex Jurassic Moderator
    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
  • EagleDotNet
    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
  • cPRex Jurassic Moderator
    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
  • EagleDotNet
    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
  • cPRex Jurassic Moderator
    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
  • EagleDotNet
    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
  • cPRex Jurassic Moderator
    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
  • EagleDotNet
    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
  • cPRex Jurassic Moderator
    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.