question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IPv6 is not supported

See original GitHub issue

Currently 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 to create_tcp_server() and create_udp_socket()
  • if family is not given infer it from interface argument if possible
  • implement create_connection() function and use it instead of socket.connect() in connect_tcp() function

If proposed changes are fine with you I will submit a pull request.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
agronholmcommented, Aug 27, 2019

Almost done. Just need to check the new TCP connection logic.

0reactions
agronholmcommented, Sep 1, 2019

I’ve created #69 to track the Happy Eyeballs implementation.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found