B4J Question Mqttbroker - how to set the hostname or ip address

Hanz

Active Member
Hello,

I wonder how to set the hostname or ip address of the mqttbroker. How will the agent should know the hostname/ipaddress of the server. DebugLog, Initialize, SetUserAndPassword, Start, and Stop--these are the only members. The "Initialize" has only two parameters: EventName and Port. There is nothing referred about the hostname. But if you run your application, it says that the host is 0.0.0.0.

Thanks in advance.
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
hi!

you can only set the port in the mqtt broker during the initialize, the IP will be always the machine you are running the project / jar, if you are talking about the a masked name then, internally it is the name of the computer, externally it is a domain but neither of those is in fact set during initialization but outside of the project.
 
Upvote 0
Top