Running `http.server` returning `ERR_CONNECTION_REFUSED` in Python

You need to use the specific binding IP or hostname to access the server: Either:

Related: