[Interest] IPV6 not working
Thiago Macieira
thiago.macieira at intel.com
Sat Mar 23 01:13:30 CET 2013
On sexta-feira, 22 de março de 2013 23.34.51, Etienne Sandré-Chardonnal wrote:
> I got it... In fact, I just learned that it's not possible to listen
> on both IPv4 and IPv6 with the same socket, and that QHostAddress::Any
> means only IPv4
That's incorrect. QHostAddress::Any listens on both address families on any
modern OS. It breaks only on Windows XP because the IPv6 stack there is an
add-on, not built-in. Then again, no one runs that connected to the Internet
(right?) and definitely no one seriously uses that for IPv6.
QHostAddress::AnyIPv4 listens only on IPv4.
> Qt automatically uses the IPv6 when the DNS lookup returns both IPv4
> and IPv6, which caused the issue.
>
> How is it done usually in server applications? Are there always two
> QTcpServers , one for IPv4 and one for IPv6?
See above.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130322/c60bebd9/attachment.sig>
More information about the Interest
mailing list