How To Clear Out Localhost:8000?

How do I clear out localhost:8000? Thanks.

MacBook Air

Posted on Aug 15, 2019 2:23 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 15, 2019 7:30 AM

It is not clear what you are asking. 8000 is just a port. localhost just refers to your computer. There is nothing to clear. You would use localhost:8000 in a browser for example to access a web page running in a web server on your computer on port 8000.


So be more discriptive about your issue and provide some context such as why you are asking the question.

12 replies
Question marked as Top-ranking reply

Aug 15, 2019 7:30 AM in response to engine44

It is not clear what you are asking. 8000 is just a port. localhost just refers to your computer. There is nothing to clear. You would use localhost:8000 in a browser for example to access a web page running in a web server on your computer on port 8000.


So be more discriptive about your issue and provide some context such as why you are asking the question.

Aug 15, 2019 4:32 AM in response to engine44

In Finder->Go->Go to Folder: type

/private/etc/hosts

It will show you the hosts file

the hosts file should read (open with textedit):


##

# Host Database

#

# localhost is used to configure the loopback interface

# when the system is booting. Do not change this entry.

##

127.0.0.1 localhost

255.255.255.255 broadcasthost

::1 localhost



If it is different, replace with the lines above

save

restart.



Aug 15, 2019 9:31 AM in response to Lexiepex

I am using localhost to learn an SSG called Gatsby. I follow their instructions and input code using Terminal. I can view the result on localhost:8000. When I moved to the second chapter of the Gatsby tutorial, they again sent the output to localhost:8000. This time the computer responded that localhost: 8000 was being used. Would I like to

send the output to localhost:8001. I said yes. But then I started wondering how to clear out localhost:8000. Thus my question.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How To Clear Out Localhost:8000?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.