Skip to content

IPv6 support #5

@mid-kid

Description

@mid-kid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions