System Information
Field |
Value |
Operating System |
Linux - Debian GNU/Linux 12 on x86_64 |
Product |
AMP ‘Callisto’ v2.5.1.8 (Mainline) |
Virtualization |
Docker |
Application |
Minecraft |
Module |
MinecraftModule |
Running in Container |
Yes |
Current State |
Sleeping |
Problem Description
Issue
I can locally connect to the server using my ip. When trying to connect via example.example.com i get the error |Connection timed out: getsockopt|. I am using nginx proxy manager as a proxy for the server pc that is hosting AMP. Not sure if that is causing an issue. Any help would be apprciated. (Newish to linux, be gentle). I have tried to connect directly to amp.example.com and get the same error. I have also tried making a new A domain and in NPM directing that to server ip and port 25565, with no luck… so kinda lost as what to do.
Reproduction Steps
- Installed Server and got it running
- Tried to connect to it using domain hostname
- Connection is refused and have tried everything i can think of
If you’re using CloudFlare for DNS make sure that you have their proxy (orange cloud) disabled, as their proxy doesn’t support game traffic
Thank you did not know that, I still get the error however. Current setup is as follows : amp.example.com----- SRV join.example.site (targets amp.example.com) on port 25565. Tries to connect then gives aforementioned error. I have also tried to connect directly to the amp.example.com. I have pi-hole for DNS (if that’s what you mean). So still not sure…
I meant, if you’re using CloudFlare’s dashboard for DNS records, not as a DNS provider.
If you’re not using CloudFlare for your domain’s DNS you can disregard that.
You also don’t need an SRV record for 25565, since that’s the default port.
I’d suggest checking in your router to see if you’ve port forwarded MC correctly
I believe i fixed it, i was missing a 1 in my port forwarding ip address… whoops (at least it wasn’t something more complicated).
Ah, that would do it yeah
I am having another issue. i connect to my server pc through RDC. When i close out it gives me error 502 on the amp.example.com. I have to go in and restart it manually and then when i end the session it ends once again. any thoughts as to why. AMP also made another user for the PC, i assume thats fine? Again thanks for the help, i really do appreciate it.
AMP runs on it’s own Linux user with minimal perms yeah.
You can run ampinstmgr start ADS01
as the amp
user to get the panel back up and running.
There a way to keep it up when i exit off? So i can manage it from phone/ or just when im not remoting into the server?
There was another user on here with a similar issue, and didn’t end up resolving it.
Whenever they’d log out of the primary account, the computer would do some weird low-power stuff and mess with the running game servers.
Your best bet at keeping things running smoothly would be to leave either your user, or the amp user fully logged in at all times to avoid that. (even if the AMP user is just logged in via the monitor attached to the PC, that should be enough).
Imo once you’re comfortable enough with Linux you should switch to a server install, which wouldn’t run into that issue, but only when you’re ready to make a switch like that obvi, it’s easier to learn the ropes in a desktop install.
Thanks appreciate it, and yea I’m still not very comfortable with Linux. I have only had this pc for a few weeks and just started recently tinkering with it.
I think i found a work around. I installed something called Screen that detaches the terminal from the user. Now when the user logs of the instance of the terminal remains running, thereby also causing the server to run. I tried to get chat gpt to make a file to just run the server instance as system and restart upon failure but… didn’t work. But figured id share the little work around if found.