How to make android multiplayer game?

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

So I’m tackling multiplayer and have no idea what to do. Basically, I want to connect android devices, at least up to 6, together over the same network. I have a basic chatroom working with the help of a tutorial from narwalengineering, on pc, I can get two computers connected to the chatroom. How would I do this for android? And I’d like the android device that is the host to display a code, either a unique code, or even just the ip address, so that the other devices know what to type in to connect to the host device, kinda like the game Psych. And like the game Psych, would it be possible to have players connect to the host even on different networks? I know I’m asking a lot, but any and all help will be much appreciated.