Trouble making local multiplayer game with rooms in the lobby

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tam0705
:warning: Old Version Published before Godot 3 was released.

Hi, I want to make a multiplayer game. For now people can only play each other using local connections. So they will be a menu/lobby where available local game rooms will be shown in a list. The trouble is I don’t know how to make clients check whether there are any rooms in the local connection. Should the clients listen to the specified port (like my defined DEFAULT_PORT constant), IP (like 127.0.0.1), or what? I have searched about this lobby multiplayer mechanisms but I found nothing :frowning:

I never experienced with multiplayer in Godot, but did you have a look at this? High-level multiplayer — Godot Engine (latest) documentation in English

Zylann | 2017-11-24 18:20

:bust_in_silhouette: Reply From: Qichunren

Use UDP to broadcast game status to LAN

do you know how to automatically know the broadcast ip ? so the host can send to it and client can listen to it also

ruruarchy | 2019-12-19 03:34