sebastienfouss / loxone_mqttsn

MQTT-SN client for Loxone
4 stars 1 forks source link

Connection over internet #1

Open T0rmor opened 7 months ago

T0rmor commented 7 months ago

Hello,

I really like this project and instantly found a use for it in my project. But I do have one issue, that being, is it possible to configure the MQTTSN_GW_URL to an IP that isn't on the LAN network? I would like to be able to connect to a remote server, but my tests entering the IP and port into the config have been unsuccessful. I was wondering if it is even possible, and if yes, then how?

All the best

sebastienfouss commented 7 months ago

Hi,

Could you please be more specific about the issue you are facing ? What are the symptoms ?

Have you tried to use the address scheme used by Loxone, ie: "/dev/udp/[IP]/Port", for example "/dev/udp/192.168.10.56/1883" for a local IP ?

T0rmor commented 7 months ago

Hello,

I've successfully configured the MQTTSN_GW_URL to connect to a local MQTT-SN gateway using a LAN IP address, specifically with the configuration string "/dev/udp/192.168.10.56/1883". This setup works perfectly when the gateway is on the same local network as my client.

Now, I am attempting to connect to an MQTT-SN gateway that is hosted on a remote server. To do this, I replaced the local IP with the public IP address of my Virtual Private Server, using the configuration string "/dev/udp/32.65.43.76/1883". However, I'm unable to establish a connection in this remote setup. It does show in Loxone that the UDP packets are being sent.

My question is have you been able to do this and I'm just messing up some firewall rules?