gpustat-web
gpustat-web copied to clipboard
http://0.0.0.0:48109 - missing IPv6 support
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.
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?
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.