C++ gRPC client under Wine on Linux forces IPV6 for 127.0.0.1 -- disable dualstack?

42 views
Skip to first unread message

Rajesh Thakkar

unread,
Jul 28, 2025, 9:57:28 AM7/28/25
to grpc.io

The client is C++ gRPC client running under Wine on Debian 11. The server is running onhost listening to 127.0.0.1:50051.

The device follows CIS STIG standard has disabled ipv6 on the host

The Linux C++ Client works fine. The GO Windows Client running under Wine also works fine.

The C++ gRPC Client under Wine trying to connect to 127.0.0.1:50051 running on host forces IPV6 with error

RPC failed: 14: failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50051: WSASocket:
WSA Error (Unable to retrieve error string -- 10047)

Tried to patch code in tcp_client_windows.cc / resolver_address_windows.cc / socketaddr_utils.cc / socket_windows.cc

Nothing works!

Any suggestions will be appreciated.

--Rajesh

Reply all
Reply to author
Forward
0 new messages