Can't connect to MC server running in a VM in Proxmox - probably port-forwarding issue

ThatOneMark

New Member
Oct 12, 2024
2
0
1
Hello,

for clarification - I'm very much a newcomer to Proxmox and I'm still learning how to use it. I'd say I have basic Linux knowledge as well, but I still like getting my hands dirty and try to learn new things.

My issue is the following - I have a CLI Ubuntu Server running in a VM on my machine, and I installed AMP, which is a game server manager. My plan is to use that VM to install and manage a couple game servers for me and my friends to use, mainly a good ol' Minecraft server. The issue I'm running into is trying to connect to it on another machine on my local network. I've PF'd the VM's IP and port of the MC server on my router, which didn't work. I then added PF rules for that VM in Proxmox, which didn't work either. I also then PF'd Proxmox on my router with the port of the Minecraft server (so the IP of the WEBGUI with the Minecraft port - I did it just to find out if that would fix it but it clearly didn't).
I tried connecting to the server with a local and external IP, none of which yielded successful results.

On a separate note, AMP allows external access to its own WEBGUI using a custom domain and by installing a Let's Encrypt HTTPS cert (which I did), which I also own and wanted to give my friends access to that WEBGUI. I can't access that WEBGUI with my custom domain. I figured both of these issues have something to do with having to additionally configure some things in Proxmox, so I'd really like to get some headers on how to resolve this.
 
I've been busy with work and completely forgot about this side project of mine lol

My main focus is trying to get outside access to the game server, I don't care as much about outside access to AMP's WEBGUI at this time.
I've tried disabling the firewall and I've managed to get access to the server on the local network, but I haven't been able to connect to it outside of the network, nor have any of my friends had any luck still. The error it spits out is "connection refused: getsockopt". I've looked at several forum threads and nothing fixed the issue. I've disabled the firewall on the Datacenter, Node and the VM itself with no luck. Am I missing something in terms of PF?

So once again, at the moment the only things that are PF'd on my router are:
- Proxmox with Minecraft's port (so the local IP with which I can access Proxmox's web panel through my browser with port 25565)
- the VM (local IP of the VM visible on my router with port 25565).

Within Proxmox, I've still got inbound and outbound rules for port 25565 in the Datacenter's, Node's and VM's firewall.
 
Maybe your ISP put you behind NAT? That would explain why you can't connect from outside, while being able to do so from LAN
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!