Code Monkey home page Code Monkey logo

Comments (3)

davidepianca98 avatar davidepianca98 commented on May 24, 2024

Hello, do you mean if it's possible to reach the broker hosted on a server behind a DNS domain instead of an IP address? Yes it possible but the setup is independent from the broker itself.

from kmqtt.

nishankhadka09 avatar nishankhadka09 commented on May 24, 2024

Sorry let me re-write the question.

Hello, do you mean if it's possible to reach the broker hosted on a server behind a DNS domain instead of an IP address? Yes it possible but the setup is independent from the broker itself.

Instead of using the IP address of the device in a network as host address, can it be set to something else like e.g: "kmqtt.test.mqtt" that points to 0.0.0.0 ? The Broker also takes a host as argument in its constructor. Therefore, I was wondering if that was possible.

from kmqtt.

davidepianca98 avatar davidepianca98 commented on May 24, 2024

Instead of using the IP address of the device in a network as host address, can it be set to something else like e.g: "kmqtt.test.mqtt" that points to 0.0.0.0 ? The Broker also takes a host as argument in its constructor. Therefore, I was wondering if that was possible.

Yes it is possible, but it is not something related to the broker, rather a configuration of the DNS server. You still have to bind to an interface, or to all of them (with 0.0.0.0). But then if you need this on the local network, your DNS server is probably your router and you need to configure a mapping of desired hostname to device IP address. If you are on the Internet then you need to buy a domain and configure that to match the public IP address.

There is an alternative in the local network. If your device hosting the broker uses DHCP, you can specify the hostname and domain name to give it a local name, provided you have a DHCP and DNS server running, most likely in the router.

This is out of scope of the project though, I suggest doing additional research on the information I provided.

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.