emme wrote: ↑Monday 09 October 2017 9:54
the different behaivour depends on your internet provider:
if you are not propted with user and pass, I assume you have all your local network in the Domoticz server IP list (or at least the PC source IP address)...
if you call you server using the ddns you access it through the wap IP address... in some cases the router itself will tranaslate the wan IP to local IP, in some other (vodafone Italy) the gateway wil drop your request (you will be never able to get into your LAN using the WanIP from your lan...)
Domoticz is an app... running on a web server (apache)... so the rules are apache driven, not domoticz
with my previous ISP (fastweb) I was able to connect using v6 addresses (both local and external)
ciao
M
P.S.
it is anyway recommend that you disable v6 stack on the PI... because it could have some issue using apt-get
I'm sorry, but I am struggeling with the same issue as the original poster of this topic. I do run a fully configured dual-stack environment (IPv4 and IPv6) without any
issues at all, regarding any program I use.
As your setup is described, you do not use a "split-dns" setup, ergo, you use the DNS settings from an outside DNS server, to resolve to addresses on the inside. A properly configured network has a split-dns setup. All hosts that resolve on the inside, get the information from the internal dns servers, and are pointed to the inside IP addresses of the host. (Both IPv4 and IPv6 in my case). Example:
Inside (LAN) host request:
Code: Select all
host haringstad-pi.delaars12.loc
haringstad-pi.delaars12.loc has address 192.168.12.246
haringstad-pi.delaars12.loc has IPv6 address 2001:470:792d:1:e3fa:59ea:5f60:341f
haringstad-pi.delaars12.loc mail is handled by 1 vps.haringstad.com.
Outside (Internet) host request:
Code: Select all
host haringstad-pi.delaars12.loc 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases:
Host haringstad-pi.delaars12.loc not found: 3(NXDOMAIN)
Inside (LAN) host request on outside hostname:
Code: Select all
host haringstad-pi.ipv6.haringstad.com
haringstad-pi.ipv6.haringstad.com has IPv6 address 2001:470:792d:1:e3fa:59ea:5f60:341f
Outside (internet) host request on external domain name:
Code: Select all
host haringstad-pi.ipv6.haringstad.com 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases:
haringstad-pi.ipv6.haringstad.com has IPv6 address 2001:470:792d:1:e3fa:59ea:5f60:341f
This, however, doesn't solve the issue that is described. The code within Domoticz doesn't recognize IPv6 address-space, as being LOCAL networks. What you try to formulate is a way to force the browser to connect to the IPv4 address, not understanding, that current operating systems will prioritize IPv6 over IPv4.
Because the browser within the LAN will get my first example of resolving, and therefor, because I use a recent OS, my browser will start to communicate with the host on the IPv6 address. Upto now, no ISP is involved. And why do you want to connect to your WAN IP to get to an internal system? That is odd? Direct traffic is preferred at any time.
Even @Thomasdc claims, that there will be more traffic on your network with IPv6. He only forgets that IPv6 is much more sophisticated and smarter than IPv4, so you actually WILL benefit from IPv6.
Example: I have a Pi located in NYC (USA) and in NL. I do have on both sides serious firewall equipment. There is an IPv4 tunnel in between, and both sides have IPv6 (Public Addresses). The latency over the IPv4 tunnel from Pi to Pi is around 170 ms. From Firewall to Firewall on IPv4 it is around 145 ms. Then, using IPv6, Pi to Pi, I am around 90 ms.
Ergo, using IPv6 is a bit more "talking" on the net, resulting in faster connections.
The issue that @gflygt and I have, (and probably more people) is the fact, that Domoticz runs fine on IPv6. There is only a small part missing, and that is the Local Networks setting, not recognizing IPv6 address space. (Or I am doing something wrong, which is also a huge probability)
Slowly but surely there comes a need for IPv6 support, due to the fact that it will be used more often. And I am patient about it, due to the fact that all developers put in a huge amount of effort and time to make Domoticz better every day!
So, please do not try to solve an issue with ductape, bandaids and chewing-gum, because that is not solving the issue where it should be solved. It should be solved in the code, and that might take a while.