ID EN
Socket

has_dualstack_ipv6

Python 3.11

Return True if the platform supports creating a TCP socket which can handle both IPv4 and IPv6 connections.

Syntax

PYTHON
socket.has_dualstack_ipv6()