Menu

Why your friend can't open localhost:8000 (and the 4 things an AI-built app actually needs before sharing)
📰

Why your friend can't open localhost:8000 (and the 4 things an AI-built app actually needs before sharing)

DEV Community: beginners·Mike·10 days ago
#ciEswifN
#devtobeginners#devto#dev#localhost#host
Long article (1711 words) — no AI summary yet.
Reading 0:00
15s threshold

You asked an AI coding agent for an app and it works. The terminal prints http://localhost:8000 , the page looks right, so you paste the link to a friend. They get "This site can't be reached."

Nothing is broken. localhost is not a place on the internet. It is a name for whichever computer is asking.

The short answer

localhost:8000 means "port 8000 on this computer". On your laptop that is your dev server. On your friend's laptop it is their own machine, where nothing is listening. (If something is listening there, they will see their own app instead of yours.)

To share the app, it has to run somewhere other people can reach: on your machine behind a tunnel, or on a host.

A public address is the easy half. The app also has to work there, and four things tend to fail on the first deploy: the database, the settings, the sign-in callback and the build.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.