mIRC Home    About    Download    Register    News    Help

Print Thread
ipv6 socket server - accepting ipv4 #269465 09/10/21 11:56 AM
Joined: Jul 2006
Posts: 3,829
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,829
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

https://docs.microsoft.com/en-us/windows/win32/winsock/dual-stack-sockets


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: ipv6 socket server - accepting ipv4 [Re: Wims] #269466 09/10/21 04:44 PM
Joined: Dec 2002
Posts: 5,019
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,019
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.