0
votes

I have configured the mosquitto broker to listen to port 8883 which is the port that will be used for making ssl connections from the mosquitto broker. I restarted mosquitto broker using the following command

mosquitto -v -c mosquitto.conf

I encountered an error: Only one usage of each socket address is permitted. What is this error and how to solve this error?

1
Can you please post the contents of mosquitto.confDhanushka Dolapihilla

1 Answers

1
votes

The command you have typed is not the command to restart mosquitto. You can type sudo service mosquitto restart to restart the mosquitto service which by default loads /etc/mosquitto/mosquitto.conf if you're running linux.

The error you have seen has occured because mosquitto service may be already running on port 1883 and you have tried to run mosquitto again on that port.

Better to stop the service or restart it. To stop mosquitto - sudo service mosquitto stop Status - sudo service mosquitto status