Mosquitto MQTT Broker Netsh Port Forwarding from Wireless LAN IP/Port to Local IP/Port

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone and welcome so in this video first let me discuss the problem and then after we will see the solution of that problem okay so if I open mqtt Explorer to connect with my local mosquito broker so you can see the mqtt connection with mosquito broker and the IP address is 127.0.0.1 and port number is 1883 and if I open my task manager here you can see services I'm sorry and we will search for mosquito you can see my mosquito broker is up and running in my local system so if I try to connect with this IP address 127.0.0.1 I am able to connect with my mosquito broker but over the Lan Network I want to connect with this mosquito broker then I'll not able to connect so let me show you that if I open my command prompt and if I type IP config and here is my local area network ipv4 address so let me copy this and let me paste it here and if I try to connect so I won't able to connect with mosquito broker as you can see my mosquito broker Services is still up and running but still I am not able to connect with this IP address because when I am requesting connection on this IP address and this port number my local system will not accept that connection because there is no Port Connection in between my local system and my this IP address so that is why we have to use port forwarding from our local port to local port to make it work so after port forwarding when I am using this IP address to connect with my local mosquito broker I'll able to connect okay so let me open this and you can see here we can use this command in our Command Prompt to forward our Port okay so you can see here netsh interface pod proxy add ipv4 listen address so any request comes to this IP address and this port will forward to this IP address and this port so I am right now using this IP address to connect with my mosquito broker but it won't let me connect so after using this port proxy we are able to connect so let me copy this open my command prompt in administrative mode so run as administrator yes and then if I paste it here okay now if I open my mqtt Explorer you can see here we are connected with our mosquito broker and if I press disconnect and if I press connect again I am able to connect without any problem and also I can use 127.0.0.1 to connect with my mosquito broker so in the both cases I sorry for this so in the both cases I am able to connect with my mosquito broker over this IP address and my localhost IP address so if you want to publish some data to your mosquito broker from other another system which is on your local area network then you can use this proxy to make it work okay so if you don't have this kind of proxy then it won't let you connect with your mosquito broker now if you want to see which Port has been configured in your system so you can copy this command and you can run you can see the result that listen listening IP address is this so our system will listen to this IP address and it will transfer that request to this IP address okay so they are able to connect with this IP address and port number now if I want to delete this configuration then also we have some command so this I copy this I paste it here and if I press enter now check it again see there is no configuration available because we have deleted this and now you can see disconnected from server and if I try to connect we are not able to connect so we must have to add Port proxy between our local IP address and our system IP address to make our mosquito broker available over the Lan Network so I hope everything is clear about word proxy in this video so if you have any doubt or if you are not able to connect with your mosquito broker over the Lan Network then you can use this proxy in Windows machine to make it work so you can find the commands for this in our blog and if you have still any question or doubt then you can directly ping me on telegram or you can also ping me on Instagram so we will meet you in the next video till then take care goodbye and thank you
Info
Channel: Fusion Automate
Views: 4,641
Rating: undefined out of 5
Keywords: Netsh Port Forwarding for Mosquitto MQTT Broker
Id: PAn9azzPMiY
Channel Id: undefined
Length: 5min 11sec (311 seconds)
Published: Sun Mar 19 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.