python3 -m http.server 8000 --bind 127.0.0.1
Both port and bind address are optional. For more details, please read the official docs.html
python -m SimpleHTTPServer 8000