Forums Archived

This forum has been archived. No new posts can be made and no new users can sign up. It remains here for reference only.

Find the new forums here

Amp not opening ports for McMyAdmin Minecraft server

  • 1.1K Views
  • Last Post 07 September 2020
mdiorio posted this 05 September 2020

Ubuntu 20.04.1 LTS AMP Application Version 2.0.6.2 McMyAdmin for Minecraft Binding 127.0.0.1:8082 Endpoint 0.0.0.0:25566

The Minecraft server is up and running. From MCMyAdmin, I can run help in the console and get results. Logs show no errors.

12:00:17

Starting Server Version 1.16.40.2 Session ID 54c3f747-f09d-4767-9745-bc95d026b43e Level Name: world Game mode: 0 Survival Difficulty: 2 NORMAL opening worlds/world/db

12:00:26

IPv4 supported, port: 25566 IPv6 supported, port: 19133 IPv4 supported, port: 19132 IPv6 supported, port: 42541

12:00:29

Server started.

However I am unable to connect to port 25566 from the Ubuntu host itself, or anywhere on the network - get a connection refused.

ufw status Status: active

To Action From -- ------ ---- 443/tcp ALLOW Anywhere # AMP Reverse Proxy 80/tcp
ALLOW Anywhere # AMP Reverse Proxy 8080/tcp
ALLOW Anywhere # AMP Management Instance 2223/tcp ALLOW Anywhere # AMP:ADS01:FileManagerPlugin.SFTP.SFTPPortNumber 2224/tcp
ALLOW Anywhere # AMP:Max:FileManagerPlugin.SFTP.SFTPPortNumber 25565/tcp
ALLOW Anywhere # AMP:Max:MinecraftModule.Minecraft.PortNumber 25565/udp
ALLOW Anywhere # AMP:Max:MinecraftModule.Minecraft.PortNumber 2225/tcp
ALLOW Anywhere # AMP:McMyAdmin:FileManagerPlugin.SFTP.SFTPPortNumber 25566/tcp
ALLOW Anywhere # AMP:McMyAdmin:MinecraftModule.Minecraft.PortNumber 25566/udp
ALLOW Anywhere # AMP:McMyAdmin:MinecraftModule.Minecraft.PortNumber 443/tcp (v6)
ALLOW Anywhere (v6) # AMP Reverse Proxy 80/tcp (v6) ALLOW Anywhere (v6) # AMP Reverse Proxy 8080/tcp (v6) ALLOW Anywhere (v6) # AMP Management Instance 2223/tcp (v6) ALLOW Anywhere (v6) # AMP:ADS01:FileManagerPlugin.SFTP.SFTPPortNumber 2224/tcp (v6) ALLOW Anywhere (v6) # AMP:Max:FileManagerPlugin.SFTP.SFTPPortNumber 25565/tcp (v6)
ALLOW Anywhere (v6) # AMP:Max:MinecraftModule.Minecraft.PortNumber 25565/udp (v6)
ALLOW Anywhere (v6) # AMP:Max:MinecraftModule.Minecraft.PortNumber 2225/tcp (v6)
ALLOW Anywhere (v6) # AMP:McMyAdmin:FileManagerPlugin.SFTP.SFTPPortNumber 25566/tcp (v6)
ALLOW Anywhere (v6) # AMP:McMyAdmin:MinecraftModule.Minecraft.PortNumber 25566/udp (v6)
ALLOW Anywhere (v6) # AMP:McMyAdmin:MinecraftModule.Minecraft.PortNumber

25565 doesn't exist anymore - that was deleted, but the firewall entry was never cleaned up. That's not good.

I'm not seeing any blocks in the firewall.

netstat -tlnp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:2223 0.0.0.0:* LISTEN 1072/AMPLinuxx86_ tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1072/AMPLinuxx86_ tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 859/nginx: master p tcp 0 0 0.0.0.0:2225 0.0.0.0:* LISTEN 1094/AMPLinuxx86_ tcp 0 0 127.0.0.1:8082 0.0.0.0:* LISTEN 1094/AMPLinuxx86_ tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 768/systemd-resolve tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 904/sshd: /usr/sbin tcp6 0 0 :::80 :::* LISTEN 859/nginx: master p tcp6 0 0 :::22 :::* LISTEN 904/sshd: /usr/sbin

Order By: Standard | Newest | Votes
Mike posted this 06 September 2020

Is the ampfirewall service running?

mdiorio posted this 07 September 2020

It looks like it finally added it, but now it looks like the port isn't opening on TCP4, only TCP6 for some reason.

sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:8082          0.0.0.0:*               LISTEN      1144/AMP_Linux_x86_
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      806/systemd-resolve
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      971/sshd: /usr/sbin
tcp        0      0 0.0.0.0:2223            0.0.0.0:*               LISTEN      1121/AMP_Linux_x86_
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1121/AMP_Linux_x86_
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      938/nginx: master p
tcp        0      0 0.0.0.0:2225            0.0.0.0:*               LISTEN      1144/AMP_Linux_x86_
tcp6       0      0 :::22                   :::*                    LISTEN      971/sshd: /usr/sbin
tcp6       0      0 :::25566                :::*                    LISTEN      9397/java
tcp6       0      0 :::80                   :::*                    LISTEN      938/nginx: master p

mdiorio posted this 07 September 2020

amp looks like it doesn't think it's open

ampinstmgr ports McMyAdmin
            [Info] AMP Instance Manager v2.0.6.2 built 03/09/2020 11:39
            [Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
            [Info] Port usage for McMyAdmin (McMyAdmin)
            [Info] Instance is currently running.
            [Info] LISTENING    8082    TCP (Core.Webserver.Port)
            [Info] LISTENING    2225    TCP (FileManagerPlugin.SFTP.SFTPPortNumber)
            [Info] CLOSED       25566   Both    (MinecraftModule.Minecraft.PortNumber)

Close