Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Problem with "bind_interface device"(Using mosquitto with two IP address)
Problem with "bind_interface device" [message #1823610] Mon, 30 March 2020 09:01 Go to next message
François-Marie BILLARD is currently offline François-Marie BILLARDFriend
Messages: 1
Registered: March 2020
Junior Member
Hello,

i am new on this forum a i begin with mosquitto on a Raspberry PI with Raspbian BUSTER.
I would use it for some exhibition.

I would use it in with different lan on the same PI.

For that i use the first lan with the cable connection. All is good a this point Mosquitto is ok.

And when i try using the second lan with the WIFI mosquitto don't start.

I have made that for the second LAN:

In mosquitto.conf there is a line with
include_dir DIRCONF

in the DIRCONF directory i have a file named RPI.conf with
bind_interface wlan0
 


and after mosquitto don't start.
Thank's for help.

François-Marie BILLARD
Re: Problem with "bind_interface device" [message #1823701 is a reply to message #1823610] Tue, 31 March 2020 10:58 Go to previous message
Roger Light is currently offline Roger LightFriend
Messages: 45
Registered: September 2013
Member
I would suggest that you keep all configuration for a single listener
together, and that you explicitly define all listeners. For
example:

```
listener 1883
bind_interface wlan0
```

It's also worth noting that the bind_interface option will only work
with root privileges. If your IP address is fixed you might be better
off using that instead:

```
listener 1883 192.168.50.15
```

Regards,

Roger
Previous Topic:How to know the host server name of mosquitto ?
Next Topic:Connection refused
Goto Forum:
  


Current Time: Thu Oct 29 03:19:21 GMT 2020

Powered by FUDForum. Page generated in 0.01501 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top