Hey to everyone, I’m just trying to create a multiplayer game with UNET. But I have a big problem, I want to use the user’s computer as a server. I will create a Lan game room and my friend will join my game room from different network. I do not want to use any server. How can ı do this? Thank you…
This can be achieved using Unity’s matchmaking service. This creates a room, posts it on the Unity master server, and others can join. The player creating the room becomes the host, with the other players connecting to them. If you want to see how this works, try adding the
NetworkManagerHUD component to your
NetworkManager GameObject. This allows you to test the system in-game under “Enable Match Maker (M)” to see how such a system would function. Read more about the matchmaker here, and good luck!