I currently am and want to keep using the privacy extension (Windows 10 default).
> ipconfig
Windows IP Configuration
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : home
IPv6 Address. . . . . .. . . .. . : 2a02:8071:6a0:0f00:9801:dc53:2556:d8a2
Temporary IPv6 Address. . . . . . : 2a02:8071:6a0:0f00:88e0:664:85c1:597a
Link-local IPv6 Address . . . . . : fe80::9801:dc53:2556:d8a2%5
Default Gateway . . . . . . . . . : fe80::5667:51ff:fea0:7156%5
However, for some outgoing connections I would prefer to use the public IPv6 address (2a02:8071:6a0:0f00:9801:dc53:2556:d8a2
) instead. The curl call updating my dynamic DNS record is an example for this. In this case, a command-line parameter allows me to use the public address instead of a temporary one. curl -6 --interface 2a02:8071:6a0:0f00:9801:dc53:2556:d8a2 https://mySubDomain.nsupdate.info:[email protected]/nic/update
But how can I make a program use the public address in general?
IPv6 Address
is calledPublic IPv6 address
because it should be routable. My Windows chose it based on th prefex advertised by my router's/ISP's DHCP server - no need to figure it out. Just as these whatsmyip sites, my dynamic DNS sees my public IP address as source of the TCP/HTTP packages - no need for much code there and it likely would be serverside anyway. Your comment indicates that my question is not very clear. Any ideas on how to improve it?