The problem with connection to mosquitto from the internal n

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
BaGRoS
Posts: 2
Joined: Tue Dec 12, 2017 7:49 pm

The problem with connection to mosquitto from the internal n

Post by BaGRoS »

Hello
If I connect to mosquitto or NodeRED from an external network via my xxxxxxxx. xxx. xxx domain, I have no problems.
If I go home and connect to my wifi, I have a problem with connection to DietPi modules through the domain mentioned above.
I turn off wifi and act on 4G works nicely, I'll connect through wifi, everything stops working.
I want to use a domain name because it should be a universal solution and allow to connect with the outside and inside.
I'll add that I can easily connect to the satellite tuner via the same domain (other port of course), not depending on the external or internal network. That is why I suspect something with DietPi.
Perhaps some other solution, universally allowing connection to the mosquitto DietPi from the external and internal network. The only thing that comes to mind is the use of an external mosquitto server.

Best regards,
Mirek
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: The problem with connection to mosquitto from the intern

Post by k-plan »

Hi,
BaGRoS wrote:I turn off wifi and act on 4G works nicely, I'll connect through wifi, everything stops working.
basic networking (behind a NAT router):

- from LAN access to internal (LAN) ip address of your DietPi mosquitto server

- or modify you internal (LAN) DNS server (router?) with a static ip address dns entry for your DietPi mosquitto server if you can
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
BaGRoS
Posts: 2
Joined: Tue Dec 12, 2017 7:49 pm

Re: The problem with connection to mosquitto from the intern

Post by BaGRoS »

mosquitto have static IP - 192.168.1.190
and
mosquitto.jpg
what more?
Post Reply