Opening 2 brokers on the same computer

Asked by maoz3000

I am trying to check how simple is bridging 2 brokers. For now I have only one server - my PC, equipped with Windows 7 :)
Is it possible to execute two processes of mosquitto? Currently, the second broker throws error message that the address is already in use...

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
Roger Light
Solved:
Last query:
Last reply:
Revision history for this message
Best Roger Light (roger.light) said :
#1

You need to run the second broker on another port. You can either run it as:

mosquitto -p 1884

where 1884 is the port number, or create a new config file and set the port number there. You'd then run it as:

mosquitto -c mosquitto.conf

Revision history for this message
maoz3000 (maoz3000-junk) said :
#2

Thanks Roger Light, that solved my question.