On a Windows 7 amd4 box, I have an application that creates a TCP socket.
My aim is to check whether this is a dual-stack socket. (Dual-stack sockets are available in Windows since Vista.)
For example, when running NetBeans, I can see this socket in in
netstat and Process Explorer:
TCP [::1]:49851 [::]:0 LISTENING
But this one behaves as TCPv6--even when it's listening, 127.0.0.1:49851 is closed. But I'm not sure if I understood the feature right, so it might be invalid assumption.
How do I obtain as much information as I can about sockets?