Localhost:8000

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

I’m writing html code, but when I wanted to running the program, the right screen is not working. It says localhost: 8000. Why is that? please help you because I am eager to learn html.



Replace this line with your code. 


1 Like

http://stackoverflow.com/questions/29588739/what-is-localhost8000-as-used-in-codecademy-for-angularjs-and-ruby-on-rails-tu

Basically localhost (or the IP address 127.0.0.1) is a way to make your computer do things your could usually only do with a server. 8000 is a port number (not to be confused with physical ports). It allows multiple devices to use localhost, similar to how an extension on a phone line lets multiple people make calls on one phone line. If you don’t say a port number it will jus go to a default one.

Usually HTML doesn’t need localhost, because it doesn’t need a server. Localhost is mostly for using backend languages like PHP/Ruby/SQL on your computer. It seems a little odd to me for codecademy to use it for HTML, but I’m guessing codecademy is using Ruby to do some logic like checking your code for errors.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.