Connect a socket
Pass the host path and the port that the guest will use:2 on port 5000 with an AF_VSOCK socket.
On Windows, pass a local named pipe instead:
/dgram when you need datagram semantics:
SDKs
vsock_dgram, vsockDgram, or a datagram VsockRoute when you need datagrams.
Limits and security
- Host sockets work only with the local backend. Cloud and multi-tenant deployments reject them.
- Unix socket paths must be absolute. Windows paths must point to a local named pipe.
- Each route supports up to 256 active stream connections or datagram peers.
- Port
123is reserved. Port0andu32::MAXare not valid.