localhost is a hostname that always means "this machine". It maps to the IP address 127.0.0.1, which the network stack treats as a loop back to itself. That's the development environment (Day 25) in practice. When you start a backend with something like npm run dev, it prints a line such as: Listening on http://localhost:3000 Your browser sends a request to that address, the request never leaves your computer, and your code responds. Same request, response, and status codes as the real thing (Days 8 to 10), with no server rented anywhere. Things that confuse people the first week: Two people can both be "on localhost" and be looking at completely different apps. It's each person's own machine. A localhost link in a text message goes nowhere for the recipient. Your phone on the same wifi can't open localhost either. It needs your computer's network address instead. Quick check: Your teammate sends you http://localhost:3000/dashboard and says "look at this". What do you see when you open it? ## SPOKEN LINES - Your friend opens the link you sent, localhost port 3000, and texts back a blank page. It works in your browser. That address points somewhere different on their machine. - - LOCALHOST - - Localhost is the name your computer uses for itself. It points to the number 127.0.0.1, which always means this machine. While you build, the frontend, the backend and often the database all run there before anywhere else. - - Localhost 3000 is your app in the browser, localhost 5432 is the database on your laptop, and yesterday's database URL probably says localhost. - - So localhost is your own computer acting as the server. Tomorrow: Port, what the 3000 means. ## NEXT Day 28: Port