connection refused qtmqtt on android
-
I am running a qt quick application on android which is using qtmqtt to puslish and subscribe data from remote computer. Here when i publish data from this application and try to subscribe in remote machine using
mosquitto_sub -h 192.168.1.69 -t "#"I'm getting error:
Error: Connection refusedHow should i solve this issue?
-
Hi
If the android is running on a mobile net it's not possible to talk to it from outside.
Smart phones on mobile net are behind a NAT firewall and its not open for external devices so
if your android is "the server" this wont work. -
Android is connected on local router through wifi.
-
Hi,
Which port are you using on your device for your broker ?
Can you connect to it directly ?
Did you check that there's something flowing with a tool like wireshark ? -
I used the default port of mqtt i.e 1883. I can ping the ip address of android but can't login with ssh inside the system.
-
Android is kind of vague, which version is it ? Running on what hardware ? Do you have root access to it ?