Way to always use the same Teredo IPv6 address

ipv6teredo

One of my computers is on an IPv4-only ISP so I am using miredo in order to have an IPv6 address.
Now I need to access this computer remotely with IPv6. (I can't use IPv4 here because it is behind a NAT I and can't add new port forwardings.)
The problem is I can't add an AAAA DNS record because some part of the IP address changes randomly each time the computer connects to the network.

So my question is: is there a way to always use the same IP address with Teredo?

Best Answer

Teredo IP addresses depend on a few things as per Wikipedia.

First of all, it depends on the IPv4 address of the router. If that is subject to change, you have a problem.

Second, it depends on the source port used by Teredo, which may be translated and changed by the NAT device. If your NAT device does preserve the source port used by applications on the inside, you may be able to get this to be unchanging. If you're on Windows, the "clientport" option for Teredo might be useful. See this technet article.

Short answer: You may be able to get it to be the same most of the time, but your mileage may vary considerably. Likely, you won't be able to get this reliable because the NAT device may mangle your source port. You may be able to stop that by setting up port forwards on your firewall... but you already can't do that... so...

A better option might be to set up a dynamic DNS client, assuming you can find one that will publish an IPv6 address of a teredo interface.

Related Question