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

Use a valid IP or hostname to access the server:

You can bind to 0.0.0.0, but not access it.

Remarks: Binding to 0.0.0.0 means to accept any IP address when connecting.

Related: