Skip to content

Commit f423628

Browse files
authored
Update README.md
1 parent 6c1f20a commit f423628

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ A drafted class diagram of the current release is as follows:
2727

2828
> [!IMPORTANT]
2929
> Allowing connections from clients outside of our machine
30-
31-
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.
32-
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).
33-
On Windows, open your Windows Defender Firewall (you can get to it by going to Control Panel > Change to large icons > Windows Defender Firewall)
34-
Go to Advanced settings
35-
Click on ‘Inbound Rules’ and then on ‘New Rule…’
36-
On the ‘New Inbound Rule Wizard” window, select ‘Port’ and hit next.
37-
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.
30+
> 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.
31+
> 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).
32+
> On Windows, open your Windows Defender Firewall (you can get to it by going to Control Panel > Change to large icons > Windows Defender Firewall)
33+
> Go to Advanced settings
34+
> Click on ‘Inbound Rules’ and then on ‘New Rule…’
35+
> On the ‘New Inbound Rule Wizard” window, select ‘Port’ and hit next.
36+
> 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.
3837
Now select ‘Allow the connection’ and hit next.
3938
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.
4039
Now your rule is created and you should be able to connect from another machine in the same network.

0 commit comments

Comments
 (0)