localhost
noun
say it: “LOH-kul-hohst” /ˈloʊkəlˌhoʊst/
The name a computer uses for itself, so a connection to it never leaves the computer.
What is localhost?
localhost is the name every computer uses for itself, like saying "me". Connecting to localhost never leaves your computer, so you can run and try a server, a website or an SSH login without renting one.
curl -sI http://localhost:8000/ | head -n 1
# HTTP/1.0 200 OK
In a sentence
- “Sam practiced ssh on localhost before renting a server.”
- “The practice website runs at http://localhost:8000.”
Level: Apprentice · More Operating System terms at this level
Updated