tags:

views:

636

answers:

1

Is it possible to have a Socket that listens and accepts both IPv6 and IPv4 clients? I used a IPv6 socket in C# hoping that it would automatically be backwards compatible but IPv4 clients cause an invalid ip address exception.

+2  A: 

Have a look here. You can accept IPv4 clients as well as IPv6 clients with the one server socket.

Matthew Iselin
I'd almost certainly say that you are wrong.
Noon Silk
silky: I'd say you're right. I've totally rewritten my answer.
Matthew Iselin
Okay, downvote retracted :)
Noon Silk