-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bind address for websockets #170
Comments
I think a better approach would to just add |
Hi, Roger, Yes making it simply As to passing in an interface name, it is not possible on an openshift gear. The openshift online version puts a gear into a guarded environment and reroute the traffic to an internal 127.x.x.x address. The address is passed to the user application by an environment variable, e.g. For short, adding By the way, very much thanks for the great work making mosquitto possible and open to public! |
A note about the actual configuration used so not to leave any confusion. It is created by bash:
In the sample configuration it comments:
So the part |
the change based on discussion on issue eclipse#170
There you go. Note that I'm not referring to interface names in the documentation because although this is possible now, it's something that may change in the future. |
Thank you Roger! |
Hello, the issue is still alive in version 1.4.10. The address is still ignored. Used Debian binary mosquitto_1.4.10-0mosquitto4_amd64.deb from http:https://repo.mosquitto.org/, running on vServer with multiple network interfaces. For simple test you can use 127.0.0.1. Here are minimal steps to reproduce it:
Open a second terminal to check binded interfaces:
Compairing with protocol mqtt:
Check opened ports in second terminal:
|
HenryNe, Please probably open a new issue to keep track of if it has not been done yet. Thanks. |
Hi, Trying to run mosqitto on openshift which would allow only to use a virtual IP address thus need to bind to an IP address in addition to a port. It failed. Is there a way of doing it?
Googled an email by Chris on Sep2 2015 on the dev mainling list suggesting use of "iface" parameter. Has that been done?
Following the information from the mailing list post eventually got this diff to have made it work:
Does this or something similar need to be patched to mosquitto?
Thanks.
-Minghua
The text was updated successfully, but these errors were encountered: