gpustat-web icon indicating copy to clipboard operation
gpustat-web copied to clipboard

http://0.0.0.0:48109 - missing IPv6 support

Open thomasschaeferm opened this issue 5 years ago • 2 comments

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.

thomasschaeferm avatar Sep 25 '19 14:09 thomasschaeferm

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?

wookayin avatar Sep 30 '19 10:09 wookayin

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.

thomasschaeferm avatar Sep 30 '19 11:09 thomasschaeferm