IPv6 is not supported
See original GitHub issueCurrently it’s impossible to create TCP or UDP server listening on IPv6 address, also it’s impossible to connect to IPv6 address using anyio.connect_tcp()
because socket.gaierror: [Errno -9] Address family for hostname not supported
is raised.
To solve the issue I suggest to make following changes:
- allow to pass optional
family
argument tocreate_tcp_server()
andcreate_udp_socket()
- if
family
is not given infer it frominterface
argument if possible - implement
create_connection()
function and use it instead ofsocket.connect()
inconnect_tcp()
function
If proposed changes are fine with you I will submit a pull request.
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (16 by maintainers)
Top Results From Across the Web
How to Fix an IPv6 No Network Access Error - Lifewire
How to Fix an IPv6 No Network Access Error · Restart the device. · Restart the router and modem. · Update the device's...
Read more >How to Fix the IPv6 Connectivity No Network Access Error
What Causes the IPv6 Connectivity No Network Access Error; Solution 1. Restart the Winsock and TCP/IP Stack; Solution 2. Disable IP Helper ......
Read more >IPV6 not enabled / not supported? - Linus Tech Tips
I'm having trouble with IPv6, kinda a beginner but tried to follow multiple tutorials to make it work. In ipconfig I only have...
Read more >How to diagnose why IPv6 is not supported - Super User
If you don't have an IPv6 address, check whether your router does (both on its WAN and LAN interfaces). It needs to get...
Read more >IPV6 : No Network Access - Microsoft Community
One reason this problem occurs is due to outdated network drivers. If this is what is causing the problem, you will need to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Almost done. Just need to check the new TCP connection logic.
I’ve created #69 to track the Happy Eyeballs implementation.