Comments (3)
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.
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.
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)
- Artifact publication on Maven Central? HOT 3
- iOSBuild failed with Could not find 'openssl-its-simulator-arm64' HOT 2
- ssl server certificate not found (IOS only) HOT 4
- Connecting to a home broker with TCP_PORT & MQTT_PORT HOT 4
- Source and JavaDoc missing from JVM artifacts HOT 1
- Error in recv: 9 on disconnect() HOT 12
- java.nio.BufferOverflowException when calling HOT 6
- Is it possible to add a path in MqttClient? HOT 2
- Provide the Client ID inside MQTTDisconnect HOT 2
- Expose the list of the connected client IDs HOT 5
- Delay in receiving published messages HOT 5
- TLSClientSettings from String instead of file path HOT 6
- Socket connection error on windows native HOT 1
- Delay in Publishing message HOT 2
- new feature: [MQTTClient] add the timeout connection in parameters HOT 7
- Feature request: Use cklib to package openssl klibs HOT 1
- kmqtt-broker - Error on TLS javax.net.ssl.SSLException : Unable to parse TLS packet header HOT 4
- Ability to subscribe after broker connected HOT 2
- Any way to know if the broker has been started or stopped in the MQTT broker? Something like a listener ?? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kmqtt.