Search code examples
mqttmosquitto

Mosquitto error: only one usage of each socket address is normally permitted


I am seeing this error with Mosquitto, can someone please tell me how to solve the problem?

λ mosquitto -v
1483089866: mosquitto version 1.4.9 (build date 08/06/2016 11:59:29.51) starting
1483089866: Using default config.
1483089866: Opening ipv6 listen socket on port 1883.
1483089866: Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.

Solution

  • The message implies that you are trying to reuse port 1883.

    Best guess with so little to work with is that you already have an instance of mosquitto (or some other broker) running on the machine that is already bound to port 1883

    The error message is one from Windows, so it probably means that mosquitto is running as a service