Android Question [Solved]Problem with MQTT broker in Android 9...

rbghongade

Active Member
Licensed User
Longtime User
Dear friends,
My project involves an ESP8266 device connecting to a hotspot created by Android device. After connecting to the hotspot, the device connects to MQTT broker service running on the same Android device.
This is successful with Android 8 but when switched to a new phone with Android 9 , the ESP8266 connects to the hotspot but is unable to connect to MQTT broker.
Since all required permissions are in place, I am unable to figure out the reason.
Is there any special permission for the same in Android 9?
I tried the same connections with a router instead of Android hotspot (MQTT broker service still on Android) and it works as expected.
Kindly advise.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

rbghongade

Active Member
Licensed User
Longtime User
Not able to connect to B4A-bridge with hotspot with this new phone (Oneplus 6)
Old phone (MI 5 connects correctly).

It seems that the default ip for the phone is not 192.168.4.1 but is allotted new every time!
This creates a problem since mqtt broker address changes .
 
Last edited:
Upvote 0

rbghongade

Active Member
Licensed User
Longtime User
Solved the issue with obtaining gateway IP and using the same for mqtt_server. Thanks Erel.
 
Last edited:
Upvote 0
Top