IPv6 support
Pull Request Prelude
- [x] I have followed proper The Forgotten Server code styling.
- [x] I have read and understood the contribution guidelines before making this PR.
- [x] I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.
Changes Proposed
Rebase and some updates on #2178
Hey, it's ~~2017~~ 2022 so it's high time we implemented support for IPv6 connections. The server now listens on an IPv6 socket unless it's configured to only bind to a specific IPv4 address. The address is now stored as a varchar in the database. The internal representation of the address has been changed to the asio-native one for simplicity.
Closes #2178
Btw let's handle https://github.com/otland/forgottenserver/pull/2178#issuecomment-281863295 separately
I can check that it is listening on IPv6 but it's quite hard to isolate networking to force IPv6 connections. I couldn't find a way to isolate IPv6 networking and running the client and server in the same machine falls back to IPv4. My home network does not support IPv6 so running from another machine is not an option.
What is the status of this pull request? I'm thinking in using it, and testing it because I have CGNAT ipv4 address
What is the status of this pull request? I'm thinking in using it, and testing it because I have CGNAT ipv4 address
It should be working, the conflicts are mostly formatting issues that I will fix right now
Tested it and it is working on Ipv6.
I just couldn't connect between my own network, dunno why.