question

JoneSelas-3490 avatar image
0 Votes"
JoneSelas-3490 asked LimitlessTechnology-2700 commented

In C# AF_VSOCK gives error "Address family not supported by Protocol" for Linux Server & Windows Client

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.



windows-server-hyper-v
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

As it is working in Windows , I would suggest you to Contact the Linus or post this in Linux forum , You might definitely get help there.

Happy helping
Mukesh

1 Vote 1 ·

0 Answers