When I examine the output of IPGlobalProperties.GetActiveTcpListeners()
, I see listeners on 0.0.0.0
as well as ::
.
I believe that listening on a port on 0.0.0.0
is equivalent to listening on a port on any network adapter, at least my memory of the Windows socket API says that this is so.
It also makes sense to me that ::
would mean the equivalent in IPv6 parlance so a listener on [::]:49156
would be listening to port 49156
on all IPv6 network adapters where as [::1]:1434
would be port 1434
on only the IPv6 loopback adapter.
Is this correct?
I assume that IPv6 listen end-points only apply to IPv6 adapters. That is, if an adapter only had an IPv4 address, connections to it port 49156
would not be received by a listener on [::]:49156
?
Also, has anyone noticed that the MSDN article for GetActiveTcpListeners()
incorrectly declares that the returned objects "include listeners in all TCP states except the Listen state."?