Hi everybody, and thanks in advance for your help.
I have put a sensor in my mailbox, and I receive notifications when I got a mail (with HomeKit and IFTTT). But, I want to receive a picture from my outdoor camera when the mailbox is opened. So, I've found so local url that give me that snapshot : 192.168.1.78/code/snapshot.jpg.
It works well when I'm inside my local network. But when I'm outside, I can't get the picture. So I have configured a dynamic DNS and a port forwarding. Here is the result : myname.com:3141/code/snapshot.jpg.
It works perfectly from outside my network. But when I'm inside, it doesn't because of the loopback, I think.
(I though my Asus AC88U would success to manage it, but it doesn't)
So, I tried to play with Dnsmasq in order to "redirect" this address to my local IP when I'm inside the network.
In my Dnsmasq.conf file, I tried :
address=/myname.com/192.168.1.78
And it works if I enter this url : www.myname.com/code/snapshot.jpg (so, without the port)
BUT, as I want a unique URL in my automatisation, I can't forget the port !
So I tried :
address=/myname.com:3141/192.168.1.78
And it doesn't work ... I presume Dnsmasq can't read the port ?
Is there a way to succeed ?
Thank you !
I have put a sensor in my mailbox, and I receive notifications when I got a mail (with HomeKit and IFTTT). But, I want to receive a picture from my outdoor camera when the mailbox is opened. So, I've found so local url that give me that snapshot : 192.168.1.78/code/snapshot.jpg.
It works well when I'm inside my local network. But when I'm outside, I can't get the picture. So I have configured a dynamic DNS and a port forwarding. Here is the result : myname.com:3141/code/snapshot.jpg.
It works perfectly from outside my network. But when I'm inside, it doesn't because of the loopback, I think.
(I though my Asus AC88U would success to manage it, but it doesn't)
So, I tried to play with Dnsmasq in order to "redirect" this address to my local IP when I'm inside the network.
In my Dnsmasq.conf file, I tried :
address=/myname.com/192.168.1.78
And it works if I enter this url : www.myname.com/code/snapshot.jpg (so, without the port)
BUT, as I want a unique URL in my automatisation, I can't forget the port !
So I tried :
address=/myname.com:3141/192.168.1.78
And it doesn't work ... I presume Dnsmasq can't read the port ?
Is there a way to succeed ?
Thank you !