Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. connection refused qtmqtt on android
Forum Updated to NodeBB v4.3 + New Features

connection refused qtmqtt on android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 453 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dinesh Lama
    wrote on last edited by
    #1

    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 refused
    

    How should i solve this issue?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      1
      • D Offline
        D Offline
        Dinesh Lama
        wrote on last edited by Dinesh Lama
        #3

        Android is connected on local router through wifi.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • D Offline
            D Offline
            Dinesh Lama
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Android is kind of vague, which version is it ? Running on what hardware ? Do you have root access to it ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved