I\'m viewing a locally hosted website (using grunt serve, if that matters). I can view it via http://localhost:9000/ or http://127.0.0.1:9000/
grunt serve
http://localhost:9000/
http://127.0.0.1:9000/
If you are using Python 3.8, this is a known bug. The solution is to manually specify the IP address with the -bind argument or use Python 3.9.
-bind
python -m http.server 8000 --bind 127.0.0.1 (or 0.0.0.0, )
python -m http.server 8000 --bind 127.0.0.1
0.0.0.0