How to create a LAN lobby?


Bonny Fernandes

How do I make a LAN lobby for my multiplayer android game?
I believe I will have to use network_send_broadcast() and network_socket_create_ext() but can somebody please explain how these functions are used in order to create a working LAN lobby?


This is a pretty advanced topic. If you're unfamiliar with networking I'd suggest you find a tutorial online somewhere to figure out the basics, and then write your own version of multiplayer pong or a simple chatroom to cement your understanding a little bit.

But to answer your question you can use network_send_broadcast() from the machine that's acting as the lobby host in order to distribute the IP address of the host to other devices on the network. Once they have the IP the machine(s) that will act as client(s) can then connect normally.