Android Question Mqtt Chat example: How to make it discover hotspot server

toby

Well-Known Member
Licensed User
Longtime User
What I did:
1. Used the Mqtt chat with auto discovery example, made minimal changes in manifest in order to make it work again with latest B4A. It worked perfectly.
2. Shut down the example app.
3. Turned on a hotspot on a phoneA; and connected phoneB and phoneC to phoneA's hotspot
4. Launched the example on phone A as Server; and the app on B and C didn't discover the server.

On older phones (Android 9-), my workaround is to provide hard coded ip address 192.168.43.1.
But on Android 10+, hotspot ip address is random (192.168.xxx.xxx)

How do I make the auto discovery work on hotspot servers?

TIA
 
Last edited:
Top