Problem connecting to a minecraft server from an external intrernet connection

hello,

I have installed a minecraft server on my truenas scale server. It works very well in LAN but I can’t configure it so that my friends can play from home.

i tried to open the ports on my box (i have a freebox ultra) but it didn’t work.

I don’t use a VPN so I’m wondering if that would help or if a ssh connection would.

would you have an idea of how to do this?

my config:
processor: i5-13500
memory: DDR4 - 32 GO
motherboard: Gigabyte B760M GAMING X DDR4
disk: main-NVME 2To Other HDD 2x4To

is a really better option than open ports to the world.
Wireguard is easy to manage and works well, keep an eyes on it

Hello

i’ve looked a bit at how wireguard works but it requires that my friends and wireguard configured on their machine too.

would there be a way to allow a connection to the minecraft server without mais amis having to do anything?

You are right, the client system have to be configured as well… But Is really really simple (install the app and import the config file).
Despite open your net to the world expose you to a lot of danger… honestly Is not an option, at least for me.
In both case, if you have a dinamic IP, you should configure a service like duckdns for have an hostname that refresh with your address (Easy via a simple server request from Nas cronjob)

Hello

I installed wireguard as you advised, but I manage to connect well when I’m on my home network, but as soon as I’m on another network nothing works. I don’t understand where this could be coming from?

Can you please describe what step and config file you upload? Have you Port forward the traffico?

I use WG-easy from the Truenas Scale catalog.

I followed the following tutorial:

Pretty different from my system, but basically the same.

Assuming you have follow those instruction correctly, and with this problem i quote, the only thing i can Say Is that maybe something wrong in the config file you use in “client”. Have you check if your server Is pointed with the correct hostname (if you use a DNS) or with your public ip?

I use this code, can it help to understand the problem?

[Interface]
PrivateKey = 
Address = 10.8.0.2/24
DNS = 1.1.1.1
MTU = 1420

[Peer]
PublicKey = 
PresharedKey = 
AllowedIPs = 3#.1##.2##.75
PersistentKeepalive = 0
Endpoint = s######m:51820

Buddy Hide sensitive data ASAP!

1 Like

I have just succeeded in changing my domain name to my fixed ipv4 address.

1 Like

Good :star_struck:

We can still see your edits. I would set up wireguard again with new keys.

4 Likes

Yes. You need to change your keys. ASAP.