forgottenserver icon indicating copy to clipboard operation
forgottenserver copied to clipboard

IPv6 support

Open ranisalt opened this issue 3 years ago • 2 comments

Pull Request Prelude

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

ranisalt avatar Feb 16 '22 22:02 ranisalt

Btw let's handle https://github.com/otland/forgottenserver/pull/2178#issuecomment-281863295 separately

ranisalt avatar Feb 17 '22 21:02 ranisalt

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.

ranisalt avatar Feb 26 '22 01:02 ranisalt

What is the status of this pull request? I'm thinking in using it, and testing it because I have CGNAT ipv4 address

conde2 avatar Aug 29 '22 15:08 conde2

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

ranisalt avatar Aug 29 '22 19:08 ranisalt

Tested it and it is working on Ipv6.

I just couldn't connect between my own network, dunno why.

conde2 avatar Sep 04 '22 20:09 conde2