Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http://0.0.0.0:48109 - missing IPv6 support #6

Open
thomasschaeferm opened this issue Sep 25, 2019 · 2 comments
Open

http://0.0.0.0:48109 - missing IPv6 support #6

thomasschaeferm opened this issue Sep 25, 2019 · 2 comments
Labels
enhancement Small improvements

Comments

@thomasschaeferm
Copy link

thomasschaeferm commented Sep 25, 2019

I would be happy if the program listens to "any" ports not just on the IPv4-sockets.

I expect something like this:

:::48109
instead of
0.0.0.0:48109

Simply replacing the host='0.0.0.0' by host='::' may break other installations, because aiohttp has set the ipv6-only flag somewhere. So the flag should be set to dualstack or it is necessary to open two separate sockets. Since the dualstack socket is not supported by all operating system so the two socket option may be the best solution.

@wookayin
Copy link
Owner

This seems to be a solution: https://stackoverflow.com/questions/45907833/python-asyncio-how-to-listen-ipv4-and-ipv6-by-using-one-socket. Can you please try it would work for you?

@thomasschaeferm
Copy link
Author

I found this site too. But I am not very familiar with python. For me it would also be ok, with IPv6-only. But in general I expect that a server application is running in dual stack mode, or it is easy configurable by command line switches/ configuration file / prominent place within the code.

@wookayin wookayin added the enhancement Small improvements label Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small improvements
Projects
None yet
Development

No branches or pull requests

2 participants