ID EN
Socket

has_ipv6

Python 3.11

This constant contains a boolean value which indicates if IPv6 is supported on this platform.

Syntax

PYTHON
socket.has_ipv6