Help with getting friends to join minecraft [java] server thats being hosted on ubuntu vm on porxmox
​
Hello! This is the first time I've set up a Minecraft server and I need help getting my friends online.
I am running proxmox on a machine. In proxmox I have a VM hosting Ubuntu and Ive installed 1.20.6 Minecraft server. The version of Minecraft was my least concern. Getting it working was my priority. The server runs great, I'm able to get on it and I receive feedback from the terminal.
Here's the problem.
I gave my friends my ubuntus public IP address since they are not on my network. The command i ran was **curl ifconfig.me**. The VM public ip address, not proxmox. Makes sense to me maybe im wrong. In the terminal it does say it has opened the server via the Minecraft default port 25565. I have them add server and enter server name:25565. They keep getting the getsockopt error.
I read somewhere about doing tunneling and i tried through playit.gg however the website kept returning no ports available. I really dont want to spend money on support like that. Last resort is port forwarding but that can expose you to attackers by opening a port. Ive read that people put a VPN on their network to add a layer of security.
I logged into my router via browser and did port forwarding. Basically the ip address of the VM that has the minecraft server on it. And then set all the ports for lan and wan to 25565. My friends are still having trouble connecting.
I still have been giving them the public ip address for ubuntu vm.
I went into my vm ubuntu firewall and didn't have port 25565 on there. I added it by doing sudo ufw allow 25565.
Gave friends publicIP:25565, and they still keep geting getsockopt error.
Any advice?