in0finite / SanAndreasUnity

Open source reimplementation of GTA San Andreas game engine in Unity
https://discord.gg/p6jjud5
MIT License
2.15k stars 353 forks source link

Add network discovery #38

Closed in0finite closed 4 years ago

in0finite commented 4 years ago

"Network discovery" automatically detects all servers on LAN (local area network) and allows the user to easily connect to them.

This would be cool feature, especially if you want to play the game over wifi on Android devices. All you have to do, is to start a server on one device, and scan wifi from the other one.

List of servers can be displayed in JoinGameWindow, in a separate tab. When user clicks "Refresh", LAN will be scanned for servers.

I already implemented network discovery for Mirror, so it is as simple as copying 2 scripts into the project.

in0finite commented 4 years ago

Afaik, playing GTA on Android over wifi is not possible in any mod out there.

Actually, starting a server on Android is not possible even in SAMP version.