This can’t be done on the Xbox One (and, in all honesty, shouldn’t). The Xbox One, like the PlayStation 4, prefers to use IPv6 in multiplayer, but it will fall back to Teredo if IPV6 is not available. Even if your network only has IPv4 addresses, the console will continue to utilize IPv6 because of this.