[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mosquitto-dev] Connections refused in mosquitto 1.4.2 on raspian
|
> Am 07.06.2015 um 13:12 schrieb Bart van Strien
> Dear Bernd,
> First, can you verify the port is actually open using netstat/ss, and that there's no firewall blocking it?
First a start log output of mosquitto:
pi@raspberrypi ~ $ sudo mosquitto -v -c /etc/mosquitto/mosquitto.conf
1433677377: mosquitto version 1.4.2 (build date Mon, 18 May 2015 15:25:19 +0100) starting
1433677377: Config loaded from /etc/mosquitto/mosquitto.conf.
1433677377: Opening ipv4 listen socket on port 1883.
1433677377: Opening ipv6 listen socket on port 1883.
1433677377: Opening ipv4 listen socket on port 8883.
1433677377: Opening ipv6 listen socket on port 8883.
Second a netstat -lnp
i@raspberrypi ~ $ sudo netstat -lnp
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN 13842/mosquitto
tcp 0 0 0.0.0.0:8883 0.0.0.0:* LISTEN 13842/mosquitto
tcp
> Alternatively, if I remember the configuration file syntax right, you've only configured tls for port 8883.
> If this wasn't on purpose, and you're trying to use tls on the clients, this could cause connection errors.
> That said, I wouldn't expect "Connection refused" to be the error in the latter case.
I am not using TLS as far as I know.
Does this help?
Kind regards
Bernd