4 ms·
I have a router connected to the internet, it gets the public IP address. The router is connected to the internal network in my home and has the IP address of
by graton 2y ago
I have a router connected to the internet, it gets the public IP address.
The router is connected to the internal network in my home and has the IP address of 192.168.1.1.
Behind the router is my computer which has a non-public IP address, for example 192.168.1.2. My computer is the one I want to run the program to update the DNS entry. My computer does not know what the public IP address is by looking at its interfaces.
- tcfhgj 2y agoWe're talking ipv6 not ipv4
- graton 2y agoI think the same situation applies for IPv6 if you are behind a router.
- tcfhgj 2y agoNo, it doesn't
- graton 2y agoI'll agree to disagree :)
- tcfhgj 2y agoI.e. you agree to deny reality https://superuser.com/questions/468727/how-to-get-the-ipv6-ip-address-in-linux https://superuser.com/questions/468727/how-to-get-the-ipv6-i...
- graton 2y agoAs I've said before. The server behind the router does not have a public IPv6 address. It is NATed to the Internet. Getting the internal IPv6 address is useless for this case. I do not like to have the servers/computers that are on the internal home network directly connected to the Internet.
- tcfhgj 2y agoNating in the context of ipv6 is not a common thing. It is the exception, while it's the rule for ipv4