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


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
But on Android 10+, hotspot ip address is random (

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

Last edited: