Hi all,
Just reporting a workaround to using vs-code and debugpy on fly.io after much head-scratching trying to establish a connection.
RuntimeError: Can't listen for client connections: [Errno -9] Address family for hostname not supported
Background: Fly.io only routes IPV6 to its containers. debugpy only accepts IPV4.
More fully documented here: [Feature request] Support connect to ipv6 address · Issue #1252 · microsoft/debugpy · GitHub
debugpy does not support IPV6. Fly.io only supports IPV6.
The solution shown (and installed here) uses:
-
fly proxy tunnelling between your dev machine and the remote container running your app
-
bridges 6tunnel running on the remote container tunnelling between the inbound IPV6 traffic to the Python IPV4-only version of debugpy.
I suggest this workaround is added to fly.io documentation base.
Thanks, Martin