Windows Client - Connected with AF_HYPERV Address family which is 34 and Protocol type is 1.
Guid serviceId = new Guid("3049197c-facb-11e6-bd58-64006a7986d3");
endpoint = new HyperVSocketEndPoint(HyperVSocketEndPoint.AF_HYPERV, vmId, serviceId);
HyperVSocket = new System.Net.Sockets.Socket(endpoint.AddressFamily, SocketType.Stream, (System.Net.Sockets.ProtocolType)1);
Linux Server - Not able to connect with AF_VSOCK address family which is 40 and protocol type is 0.
Guid serviceId = new Guid("3049197c-facb-11e6-bd58-64006a7986d3");
endpoint = new HyperVSocketEndPoint(HyperVSocketEndPoint.AF_VSOCK, Guid.Empty, serviceId);
HyperVSocket = new System.Net.Sockets.Socket(endpoint.AddressFamily, SocketType.Stream, (System.Net.Sockets.ProtocolType)0);
Other option I tried is,
Linux Server - Not able to connect with AF_HYPERV address family which is 34 and protocol type is 1. Facing "Address family not supported by protocol" error only in Linux and for Windows its working..
Kindly help me to resolve this.