Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
javiergs authored Jul 25, 2024
1 parent 3704b9a commit a4b4db6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ A drafted class diagram of the current release is as follows:
> [!IMPORTANT]
> **Allowing connections from clients outside of our machine**
> <p>When trying to send messages to the broker you might have noticed that when you connect to the broker from a different machine than the one where the broker was installed that you were unable to do so. </p>
> This is due to the operating system not having the needed ports configured. To change this we have to create an inbound rule for mosquitto broker’s TCP port (by default it is port 1883 but you can change it in the .conf file).
> On Windows, open your Windows Defender Firewall (you can get to it by going to Control Panel > Change to large icons > Windows Defender Firewall)
> Go to Advanced settings
> Click on ‘Inbound Rules’ and then on ‘New Rule…’
> On the ‘New Inbound Rule Wizard” window, select ‘Port’ and hit next.
> Select ‘TCP’ and ‘Specific local port’, on the ports’ textbox type 1883 (or your mosquitto broker port if you changed it yourself in the .conf file). Hit next once you are done.
> Now select ‘Allow the connection’ and hit next.
> Now select to what domains that this rule applies to (Domain, private or public). You can select all but this is not recommended in a production environment. Hit next once you are done and finally type a name for your new rule. Name it something like ‘MQTT Broker Port’ and hit Finish.
> Now your rule is created and you should be able to connect from another machine in the same network.
> <p>This is due to the operating system not having the needed ports configured. To change this we have to create an inbound rule for mosquitto broker’s TCP port (by default it is port 1883 but you can change it in the .conf file). </p>
> <p>On Windows, open your Windows Defender Firewall (you can get to it by going to Control Panel > Change to large icons > Windows Defender Firewall)</p>
> <p>Go to Advanced settings</p>
> <p>Click on ‘Inbound Rules’ and then on ‘New Rule…’</p>
> <p>On the ‘New Inbound Rule Wizard” window, select ‘Port’ and hit next.</p>
> <p>Select ‘TCP’ and ‘Specific local port’, on the ports’ textbox type 1883 (or your mosquitto broker port if you changed it yourself in the .conf file). Hit next once you are done.</p>
> <p>Now select ‘Allow the connection’ and hit next.</p>
> <p>Now select to what domains that this rule applies to (Domain, private or public). You can select all but this is not recommended in a production environment. Hit next once you are done and finally type a name for your new rule. Name it something like ‘MQTT Broker Port’ and hit Finish.</p>
> <p>Now your rule is created and you should be able to connect from another machine in the same network.</p>

0 comments on commit a4b4db6

Please sign in to comment.