This fails on Windows. Instead of ```socket.IPPROTO_TCP```, use ```socket.SOL_SOCKET```. That should work everywhere.