python-websocket-server icon indicating copy to clipboard operation
python-websocket-server copied to clipboard

support IPV6 connection ?

Open tomitomas opened this issue 3 years ago • 1 comments

Hi,

first of all, thanks for this great lib !

Quick question :

WebsocketServer(host="0.0.0.0", port=12345)

will that allow a connection using IPV6 ?

if not, is there a specific config to allow it ?

tomitomas avatar Sep 01 '22 15:09 tomitomas

Hi,

you need to modify the variable address_family of the TCPServer Class in the socketserver.py file of your python lib like this:

address_family = socket.AF_INET6

AlexandreVig avatar Feb 19 '23 11:02 AlexandreVig