Play with friend local

Hello everyone.

I don’t have any idea how I can use wifi with my game.

I want make game which use local wifi. I mean people who are connect in wifi can join the game and play with friend who are connect the same wifi.

I’m sorry my English is not very good
Hope you understand.

Honestly the best thing I can think of is using Game Center and using the “challenge friend” feature.

So you’re both playing the same game.

I’m not exactly sure if you can access all devices on a single WiFi for your game