-
Notifications
You must be signed in to change notification settings - Fork 5
Description
IPv6 support is interesting, because eventually the internet will move to that, and there's different ways to make it work. I'm here to propose one:
Games generally don't actually care what IP a server has. They always return exactly the IP that the DNS query command returns. We can use this fact to our advantage. Each time the DNS Query command is called, try fetching both the IPv4 and IPv6 address. Save these in a table, and return a fictional address, that can be later looked up in this table. This table should hold at least as many entries as simultaneous connections can be made. When connecting to one of these, try connecting to both the IPv4 and the IPv6 address, since we don't know exactly what protocols are talked through the user's connection.
To allow games to connect straight to IPv4 addresses, such as addresses in the local network, any address that doesn't start with 0.0.0.xxx (0.0.0.0/24 in IP talk) will still connect straight to the address.