'Google colab websockets cannot assign requested address

My colab notebook outputs this error:

OSError: [Errno 99] error while attempting to bind on address ('::1', 8080, 0, 0): cannot assign requested address

code

This error seems to happen on any port I set it too.

Links I have tried:

Receive "OSError: [Errno 99] Cannot assign requested address" on Google Colab



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source