Simple Multiplayer (2 people)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By haha-lolcat1


I am trying to set up the simplest game/app using Godot’s High Level Multiplayer API.
However, I’m trying to do so without using a VPS.

What I did, I created an app for the Client, and a separate app for the Server.
Whenever I test it myself, I am able to connect to the server using the client.

However, I’ve sent the client app to my friend (who lives in a different country) and he could not connect to my server.
I’ve tried using both my IPv4 address from ipconfig and my public IP using google.
Both of them work for me, but neither of them work for my friend.

What am I missing here?

:bust_in_silhouette: Reply From: veritius

Have you set up port forwarding?

Whoever is hosting must have port forwarding set up, usually done in your router’s control panel. It can be accessed with a special IP address. I found a list here.

Anyone connecting must type in the identical port, but they don’t need to set up port forwarding.
A port is this number, attached to an IP(V4):

Here’s a guide I found a while back.

Thanks for the explanation, I will try port forwarding, hopefully it works :slight_smile:

haha-lolcat1 | 2021-11-30 19:22

:bust_in_silhouette: Reply From: CoolName

You can currently play Multiplayer games without third-party apps, “out-of-the-box” only via localhost

You have to either use Virtual Private Network using Hamachi, RadminVPN, etc.
Or to create Dedicated Server

Awesome, I’ll look into that
And I completely forgot about Hamachi, maybe it will make things easier.

haha-lolcat1 | 2021-11-30 19:22