I'm trying to get my Unity-built Android game to run while one instance is a server in Android's hotspot mode, and have other instances in client mode connect to the server while also connected to that device's hotspot. I'm using Unity's framework for Master Servers. The game must run on local WiFi without going out to the internet and coming back.
The game runs fine when all devices are connected to a router (one build runs as a server, and the others connect to it as clients). When the server is in hotspot mode, however, the clients can't see the server even though they're connected. They also don't appear to be able to see each other when connected to the hotspot.
Is there some kind of simple setting I'm missing, or maybe some kind of firewall that's preventing discovery? Any kind of leads or insight would be helpful at this point.
I'm listening on port 25000, in case that makes a difference.
After successfully pinging Unity's master server on each device, I decided to give up on master server and just connect directly using a known IP address and port. That seems to work for now.
A more elegant solution is something like this http://www.gamasutra.com/blogs/DarrelCusey/20130307/188088/Server_Discovery_in_Unity_401.php