Skip to main content
Technical Enough

Hosting, renting a computer on the internet

Chapter 5 of 7 in The Technology Stack · 19 min

Your build works end to end, and the sales lead wants to walk through it before she shows a customer, so you copy the address out of your browser bar, http://localhost:3000, and message it to her. Her reply is a screenshot of a browser error, "This site can't be reached," with one line under it: "wrong link?" The link is right, but it only works on your own laptop. localhost, the address from Environments: why it works on your machine and breaks online, is the name every computer uses for itself, so on her laptop it pointed at her own laptop, which is not running your build. You have no other link to send her: your app runs on one computer in the world, and it stops when you close the lid.

An app that runs only on your laptop is a demo. The fix is to rent a computer that stays on all the time and has an address anyone can reach. Renting one is called hosting, and in this chapter you learn to compare the options and read a host's pricing terms.

The obvious objection: why not leave your own computer on?

Leaving your own computer on costs nothing new, but other people's devices cannot reliably find it. A home connection has no stable public address (the one your internet provider assigns changes without notice), and your router, the box that connects your home to the internet, blocks incoming requests it was not expecting by default. It is also one machine, so every crash, update, and brief power cut is an outage, and you are the one getting up at 3am. Hosting companies sell the pieces you are missing: a permanent public address, many machines instead of one, and automation that restarts whatever breaks.

Hosting is renting a computer connected to the internet, so your app has a permanent address anyone can reach and keeps running whether your laptop is open or not.

The options, from least work to most control

Every option rents you the same thing, and they differ in one way: how much of the machine you manage yourself.

Serverless is the convenient end: you bring code, the platform (the hosting company's service) runs it whenever a request arrives, and you pay for each call. The servers still exist; you just never deal with one.

Managed platforms run your whole app on an always-on computer that the hosting company operates, give it a URL (a web address), and charge a steady monthly amount. You never install updates.

Containers pack your app and everything it needs to run, the language, the installed software, and the settings, into one sealed box. The name comes from shipping containers, standard boxes any ship can carry; in the same way, this box runs the same on any machine that can open it. You write a short recipe file listing what goes inside, and because the setup your app needs travels inside the box, most of the surprises from Environments: why it works on your machine and breaks online go away.

Virtual machines work like a whole computer of your own: software divides one large physical computer into several, and each one runs a full operating system. You get the most control, and with it every chore of running a machine: installing, updating, securing, and restarting.

The hosting spectrum, from least work to most controlFour tiles in a row. Serverless, pay per call, home of Vercel and Cloudflare. Managed, always-on with a steady bill, home of Render. Container, you package it, and virtual machine, the whole box, both on the big general-purpose clouds. A sage fill deepens left to right as you take on more of the machine. An arrow above reads more control of the machine; an arrow below reads more of it is your job. The first two tiles sit inside a start here band.MORE CONTROL OF THE MACHINESERVERLESSpay per callVercel · CloudflareMANAGEDalways-on, steady billRenderCONTAINERyou package itthe big cloudsVMthe whole boxthe big cloudsMORE OF IT IS YOUR JOBSTART HEREFurther right is more control and more upkeep. Most builds start on the left.Start on a VM only if you have a specific reason.

The drawing puts the four options on one line, with VM short for virtual machine. Control over the machine grows from left to right, and so does the work that falls to you. The first two options, serverless and managed, are marked START HERE. Start at the left end: serverless for low traffic or traffic that comes in bursts, managed for an always-on machine and a predictable bill. Moving right later is routine.

The platform names you will hear

Ask any tool where to put a build and it will suggest one of the names on the drawing above. The tools that generate your starting code often propose Vercel first. Cloudflare runs your code on a worldwide network of machines, near whichever user sent the request, and this site runs there. The drawing puts both at the serverless end and Render at managed. The big clouds on the right half are the general-purpose ones from Amazon, Google, and Microsoft. If you built inside an AI app builder, its Publish button rents you the same thing, bundled into the builder.

A pricing page, printed and dissected

Every platform lists its prices on a pricing page, and the pages share one layout. Here is a shortened tier table, a table that compares a platform's price levels (its tiers) side by side. The numbers belong to no single platform, but the layout matches nearly all of them:

HOBBY                        PRO                          ENTERPRISE
No charge                    Flat monthly amount,         Custom contract,
                             plus overage charges         talk to sales

Included every month         Included every month         Included every month
  100 GB bandwidth             1 TB bandwidth               Custom limits
  1 million requests           10 million requests
  6,000 build minutes          25,000 build minutes

If you go over               If you go over
  Project paused until         Billed per extra GB and
  the month resets             per extra million requests

Read it the way you would read the terms of a rental.

The columns differ in limits, not in what they measure. Every tier measures the same things; only the amounts, and what happens when you go past them, change as you move right.

The rows under "included" are the meters, the things the host measures and charges for. Bandwidth is the data your app sends out: every page, image, and reply that visitors' browsers download. Requests count how many times anyone asks your app for anything, and loading one page can send dozens of them. Build minutes are the time the platform spends turning your saved code into the runnable version it serves to visitors. This course uses "build" for the website or app you are making; engineers also use the word for this runnable version.

Find the "if you go over" line first. It tells you what happens in a month when traffic jumps unexpectedly: on the free tier your project is paused, so your site cannot be reached until the month resets, and on the paid tier you pay for the extra.

An AI app pays two separate bills

Read the meters again and notice what is missing: none of them covers a model's reply. The model runs somewhere else, on racks of machines built around GPUs, the specialized chips large AI models run on, which the model's provider operates. You rent the model through an API, paying in tokens, the small pieces of text a model takes in and produces, and your backend, where the real work happens, holds the API key and makes the call.

Your user, your app on a rented host, and the model behind an APIThree nodes from left to right: your user, your app on a rented computer called the host, and the model behind an API, which you pay for per call. Solid arrows labeled request run from user to app and from app to model. Dashed arrows labeled response run back. Caption: you rent both, the host runs your app and the provider runs the model.YOUR USERRENTEDYOUR APPon a rented computer(the host)RENTEDTHE MODELbehind an API(paid per call)requestresponserequestresponseYou rent both: the host runs your app and the provider runs the model.

The drawing shows the two rentals in one app: your user sends a request to your app, which runs on a rented computer, the host, and your app sends its own request to the model behind its API. Each response travels back along the same path.

An AI app pays two separate bills: the host's, metered in requests and bandwidth, and the model provider's, metered in tokens.

For any feature, ask which bill it adds to: a redesigned results screen changes what the host's meters count, a longer prompt changes the token count, and a feature that calls the model on every keystroke changes both. Renting GPU machines to run the model yourself is possible, but skip it for now: GPU machines are the most expensive line on any cloud's price list, and nearly every AI app reaches its model through an API.

A deploy moves your code onto the rented computer

A deploy moves your code from where it runs now onto the rented computer, where users can reach it. Your save points from Git: the undo that makes AI edits safe are sent to the platform, which spends a few build minutes turning your code into the new runnable version and then switches every visitor over to it. In practice a deploy is one terminal command, or it happens automatically once you connect the platform to your repository's copy on GitHub (a repository is the project folder git tracks).

Approve the hosting pick

You approve the host the same way you approved the language and framework in Languages and frameworks: approve the pick. The tool that generates your starting code usually proposes a host along with the framework, so ask it to justify the proposal: the platform, where it sits on the spectrum, what the free tier includes, and what happens when you go over. Approve it unless you can name a specific constraint that points to a different option:

  • Traffic will be steady and heavy. If requests arrive all the time, an always-on machine with a flat bill costs less than paying per call.
  • The code needs a setup the easier platforms do not offer. A specific operating system, unusual installed software, or work that runs for hours points toward containers.
  • Somebody already pays for a cloud. A company contract with a cloud, and a team that runs it, can be a better choice than starting fresh with a new host.

If you cannot state your constraint in one sentence, choose an option at the left end.

Try it now

This drill takes about fifteen minutes, and you spend nothing; real pricing pages are longer and busier than the composite table in this chapter, which combines the layout of several real ones. You finish with one sentence about your build's costs, which you use again in Monitoring, how you know it broke (and what it costs).

No setup: Open the pricing page of one platform from this chapter and find the parts you just read about: the tiers, the meters, and the "if you go over" line. Then finish the sentence "my build would start paying the month that ___ happens," using a meter you found.

With your tools: In Claude Code, with your project open or your idea described in one sentence, ask where the build should be hosted and ask it to justify the answer: a specific platform, its tier, what its free tier includes, and which meter your build would hit first. Push back once, asking what would make a different tier the better choice; then approve. You are practicing the approval, not deploying. Same move in Codex or Cursor, from the sidebar chat. If nothing is installed yet, the Setup Clinic gets you running.

Chapter Summary

  • Hosting is renting a computer connected to the internet, so your app has an address anyone can reach and keeps running when your laptop is closed.
  • Your own computer cannot do the job: home internet has no stable public address, one machine means every crash is an outage, and you would be the one restarting it at 3am.
  • The options differ only in how much of the machine you manage: serverless runs code on demand, managed platforms keep an always-on app with a steady bill, containers seal your app and its environment into a portable box, and virtual machines give you the most control in exchange for every chore of running the machine.
  • Start at the convenient left end of the spectrum; moving right later is routine, and only a constraint you can state in one sentence justifies starting further right.
  • The names to recognize are Vercel, Render, and Cloudflare, with the Amazon, Google, and Microsoft clouds at the right end of the spectrum; an AI app builder's Publish button rents you the same thing, bundled into the builder.
  • A pricing page is a tier table: the meters are bandwidth, requests, and build minutes, and the first line to find says whether going over pauses the project or starts charging.
  • An AI app pays two separate bills, one to the host that runs the app and one to the model's provider, paid in tokens through an API; for any feature, ask which bill it changes.
  • A deploy moves your saved code onto the rented computer, as one terminal command or automatically once you connect the platform to your repository.
  • Billing alerts warn you and spending caps stop the charges when a bug or a bot runs up the bill overnight, and you will set them in the pre-flight chapter before you ship.
  • Next is Auth, who you are vs. what you can do, because once the rented computer responds to anyone who finds it, you need to decide how it confirms who each person is and what each person may do.

Sources

  • Vercel public product and pricing documentation (last verified July 2026).
  • Render public product and pricing documentation (last verified July 2026).
  • Cloudflare public product and pricing documentation (last verified July 2026).
  • The tier table above is a composite for teaching: it reproduces the structure these pages share, not any single platform's terms.