Code: Select all
This morning, we decided to support IPv6 to our customer on my server and we found the problem with players who are using IPv6.
For client Ipv4, this function returned full of ip. Eg: "220.127.116.11"
For client Ipv6, this function returned just the first part of the string: Eg: "2a01" (while there are more of it ":aaaa:bbbb:cccc"). . Because we have plenty of Ip begin with 2a01, so our server detect that they're in the same Ip and stop them from playing together.
More information: they connect to my server normally without any errors, so I think I have configured my server correctly.
I don't know what is going on. Let me know please. Thanks.