Unable to connect localhost for the new site

I created a new site after installation, and then tried to access this site, but got an error with “Firefox can’t establish a connection to the server at 127.0.0.1:8000”