0

Similar question to Force requests to use IPv4 / IPv6.

I'm using pwclient, which uses in xmlrpc.py for connection xmlrpc.client (xmlrpc.client.SafeTransport for HTTPS and xmlrpc.client.Transport for HTTP), which uses http.client (http.client.HTTPSConnection for HTTPS and http.client.HTTPConnection for HTTP).

How can I force it to use only IPv4 or only IPv6?

pevik
  • 4,091
  • 3
  • 28
  • 39
  • I'm trying to use url in IPv6 form xmlrpc.client.Server('http://[fd00:192:168:3::20]:9001/RPC2') and get the following error: ConnectionRefusedError: [Errno 111] Connection refused does it support IPv6 at all? – Aliaksandr Veramkovich Oct 16 '21 at 15:57

0 Answers0