Urgent.News

What's breaking now, across hundreds of outlets.

AI

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

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…

To share an AI-built app with a friend, it must run on a server accessible from the internet, not just on your own computer. The confusion often arises because "localhost" and "127.0.0.1" both refer to the local machine, but only "localhost" can resolve to "your laptop" and not "your friend's laptop".

On your laptop, running an app on port 8000 (localhost:8000) means the app expects traffic on that port locally. However, on your friend's laptop, nothing is listening on port 8000, so they see a "This site can't be reached" error. The app needs to run on a public server for others to access it.

There are three main ways to make an app public:

1. Tunneling services like ngrok or Cloudflare Tunnel create a public HTTPS address that forwards to your local server. This works well for quick testing but stops when your machine is off or the tunnel expires.

2. DIY hosting with a Virtual Private Server (VPS) or a platform where you manage the deployment yourself. This gives you more control over the server, but you're responsible for setup, maintenance, and costs.

3. Using a service like Tofu, where your coding agent deploys the app to a platform that handles the server for you. Tofu builds and serves the app, but it doesn't run background processes or handle updates or backups.

To make an AI-built app shareable, it needs four key components:

1. A database accessible from the hosting server, not just your local machine. This often means creating a new database instance on the server and configuring the app to use it.

2. Settings that are specific to the hosting environment, not just the local development environment. This includes API keys, email settings, and any other configurations that need to be set up on the server.

3. HTTPS security certificates, especially if the app handles sensitive data or user information. This is essential for protecting data in transit.

4. Regular updates and backups to keep the app running smoothly and ensure data is not lost.

Each method of sharing an app has its pros and cons, and the choice depends on your specific needs and technical expertise. Tunneling services are quick but temporary, DIY hosting gives you full control but requires more effort, and services like Tofu offer convenience at the cost of less control. Regardless of the method, understanding the underlying concepts of localhost, public servers, and app dependencies is crucial for successfully sharing your AI-built app with others.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

Three people connected our app from Claude's connector directory, and none of them shipped an app: what we fixed

We make Tofu, a service that puts apps and websites online from a chat. Tofu has a connector that people can add to Claude, and it was listed in Claude's connector directory from 4 October 2026 as a…

  • Three accounts connected Tofu's connector to Claude between 5-21 October 2026
  • None of the connected accounts created an app, issue stemmed from multiple factors
  • Tofu fixed listing, project list, GitHub import, and dashboard hint to improve user experience

AI Chatbots for Ecommerce Support: Setup Checklist

Originally published on Tool & Till . An AI chatbot can answer "where is my order?" at 2 a.m., but it can also confidently tell a customer the wrong return window.

  • Choose AI assistance type: Shopify Inbox or pre-written instant answers
  • Prepare knowledge base content: shipping, returns, product details, order instructions
  • Set handover rules: identify topics requiring human intervention

How to Make Images More Likely to Surface in ChatGPT and Google AI Answers

A page can rank well in conventional search and still have none of its visuals appear in an AI-generated response. That distinction is becoming more important as people use ChatGPT and Google's AI…

  • Ensure images are server-rendered for consistent crawler access.
  • Provide context with alt text including model names and design features.
  • Optimize image delivery with clear framing and avoid text overlays.

More from Wednesday 25 November →