Why The Connect Failed For Ipv6 At Python?
Why the connect failed for ipv6 ?? # python >>> import socket >>> s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM) >>> sa = ('2000::1
Solution 1:
Link-local addresses (e.g. fe80::whatever) typically require a scope id to be specified in order to work. Try
sa = ('fe80::21b:78ff:fe30:7c6%en0', 2000, 0, 0)
instead. (If the computer you're trying to connect() to is accessible via a network interface other than en0, substitute in the name of the interface where en0 is now)
Post a Comment for "Why The Connect Failed For Ipv6 At Python?"