I am trying to run this very basic socket example:
import socket host = 'ipv6hostnamegoeshere' port=9091 ourSocket = socket.socket(socket.AF_INET6, socket.SOCK_STREAM, 0) ourSocket.connect((host, port))
However, I get an error message:
ourSocket.connect((host, port)) File "<string>", line 1, in connect socket.error: [Errno 22] Invalid argument
Logical has_ipv6 returns true. Any help?
python networking sockets ipv6
collisionTwo
source share