nommiopen nommi

← back to resources

vibe-coder

My app works on my laptop but not for my friends. Why?

the short answer

If friends cannot open your app, it is probably running on localhost, which means only on your own computer. A link that starts with localhost points each person back at their own machine, so it cannot work for anyone else. To share the app, you deploy it: you copy it onto hosting, a computer on the internet that stays on. Then you share the live address it gives you.

In short

  • Answer: Localhost runs only on your computer; deploy the app to hosting and share the live address instead.
  • Check these three things: the link does not start with localhost or a number like 127.0.0.1; the app is deployed; it opens on a phone off your wifi.
  • Watch out: the live app can behave differently from your laptop, because secrets and settings do not copy across by themselves.
  • Do this next: open your shared link on your phone with wifi turned off, and fix the first thing that fails.
  • Last reviewed: 6 October 2026.

What is localhost, in plain words?

Localhost is the name a computer uses for itself. When you run your app while building it, it usually lives at an address like localhost followed by a number. That address means "this computer".

So when you open it, you see your app. When a friend opens the same link, their computer looks for an app on itself, finds nothing, and shows an error. Nothing is broken. The link was never meant to leave your machine.

What is the difference between localhost and a live website?

A live website runs on hosting, a rented computer on the internet that stays switched on and answers anyone who visits. Your laptop sleeps, moves between networks and is not set up to take visitors from outside.

LocalhostLive
Who can open itOnly you, on your computerAnyone with the link
When it worksWhile your laptop is on and the app runsWhenever your hosting runs, laptop or not
Addresslocalhost plus a numbera web address, like yourapp.example

How do I get my app live?

You deploy it, which means copying the latest version onto hosting. How you do that depends on how you built it:

  • Built inside an app builder: there is often a publish or deploy button, and the builder may host the app for you. Look for a live address after you press it.
  • Built as code on your laptop: you need a hosting service and a way to send your code to it. Many hosting services connect to where your code is stored and deploy each new version for you.

Each deploy replaces what visitors see. So a broken change goes live too. Test after every deploy, not just the first.

Do I need a custom domain?

Not to start. A custom domain is your own web address, such as yourapp.com instead of a long address the host gives you. You rent it from a domain seller, then point it at your hosting by changing a few settings.

It makes the app look more trustworthy and easier to remember. But the free address from your host works fine for testing with friends. Add the custom domain once the app works live.

Why does it work on my laptop but break once it is live?

Because some things exist only on your laptop. The common ones, in our reading of early apps:

  • Secrets and settings: passwords and keys your app uses to talk to other services. On your laptop they sit in a local file. Live, you usually have to add them again in the hosting service's settings, often called environment variables.
  • Your local database: if your data sits on your laptop, the live app cannot see it.
  • Addresses written into the code: if the code still points at localhost somewhere, that part breaks live.

Here is an illustrative example, not a real founder. Say your app shows a list of recipes on your laptop, but live it shows an empty page. The recipes were stored in a database on your laptop, and the live app had no way to reach it. Moving the data to a hosted database fixes it.

  1. The link starts with https and your live address, not localhost.
  2. It opens on your phone with wifi off, so you know it works from outside your network.
  3. You can sign up and log in on the live version, not just on your laptop.
  4. Every secret your app needs is set in the hosting settings.
  5. You opened it in a private browser window, so you are not seeing a version saved on your computer.

If you are about to show it to more than friends, what you might be forgetting before launch covers the wider list.

What is the strongest case against deploying now?

If you are still changing everything every hour, deploying can feel like extra work. That is fair for a few days. The missing fact is whether real people can use what you built. You only learn that once it is live, so deploy early and deploy small.

Can a tool help me choose where to host?

Not sure which builder, hosting and database to use together? Stack Picker suggests one set of tools you can build and run alone: one tool for each layer of your app, each with a reason. Which tools to build with as a non-technical founder explains the choices in more depth.

Your next move this week

Deploy your app once, even if it is unfinished. Open the live address on your phone with wifi off. Sign up, log in and do the one main thing your app is for. Write down the first step that fails and fix only that one.

Stop asking yourself

If the question is still open, you are the one person who cannot answer it honestly. Run stack picker and get the read before the building starts.