mIRC Homepage

ipv6 socket server - accepting ipv4

Posted By: Wims

ipv6 socket server - accepting ipv4 - 09/10/21 11:56 AM

When you create an ipv6 listening socket in mIRC, TCP or UDP, at the lower level in winsock, there is a member in a structure that's always on by default on Windows: IPV6_V6ONLY
This parameter means that for an ipv6 socket, by default, it will only accept/connect to ipv6 connections/server, this is not great in many cases (that parameter can be found off by default on different OS).
For example, creating a game server which has to accept anyone, so any version of ip.
If this option is turned off, ipv4 connection should be able to connect to ipv6 server, the ipv4 will be mapped to some ipv6 addresses.
In fact it looks like this also works for ipv6 client to ipv4 server.
I would like to get support for this via some switch in /socklisten, /sockudp -k and eventually /sockopen but i'm really looking for the server side of it

Posted By: Khaled

Re: ipv6 socket server - accepting ipv4 - 09/10/21 04:44 PM

I looked into this long ago when I first added IPv6 support. At the time, I decided not to add support for it since dual stack was not supported by XP, which was still widely used. I'll add this to my to-do list. However, since mIRC is still technically supporting XP, be aware that this option will not work on XP.
© 2021 mIRC Discussion Forums