Code Monkey home page Code Monkey logo

Comments (4)

davidepianca98 avatar davidepianca98 commented on May 24, 2024

Hello, this seems very weird, I don't think it is possible in general to have this setup. The MQTT port in reality doesn't exist, it is the port of the underlying TCP server that then handles MQTT packets. I think you may be talking about port forwarding with a different port, please let me know if this is the case.

from kmqtt.

y9Kap avatar y9Kap commented on May 24, 2024

IMG_20240105_142042
Screenshot_2024-01-04-08-36-00-15
This is how I connect through the app МQTT Client. I allocated a port 8884 on the router for my microcontroller

from kmqtt.

davidepianca98 avatar davidepianca98 commented on May 24, 2024

Can you please try removing ":8884" from the URL field and set the Port field to 8884 instead of 1883? The router should automatically redirect from port 8884 to the port of the broker depending on how you configured it, I guess 8884 mapped to 1883. So when connecting from the outside world you should only need to specify port 8884.

from kmqtt.

y9Kap avatar y9Kap commented on May 24, 2024

Can you please try removing ":8884" from the URL field and set the Port field to 8884 instead of 1883? The router should automatically redirect from port 8884 to the port of the broker depending on how you configured it, I guess 8884 mapped to 1883. So when connecting from the outside world you should only need to specify port 8884.

Despite your quick response, thank you for this, I figured out how to bring my broker to the external Internet in a different way: send it to DMZ in WIFI-Router. Now I don't need to specify an additional port. I also isolated my microcontroller from other devices on the network to maintain security.

from kmqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.