Short answer
Web hosting stores your site's files on a computer connected to the internet and hands those files to browsers. The host runs a web server, while a domain name is only the address people type. DNS maps that name to the server. You can share a machine with other sites, reserve one, or rent servers in a cloud data center.
Last verified against the sources listed below.
Key takeaways
- A web server is the computer, the software, or both. It stores files and answers browser requests over HTTP.
- A domain name is the human-readable address. Hosting is the server that actually holds the files.
- DNS translates the domain name into a numeric IP address so the browser can find the server.
- A public cloud shares machines across customers. A private cloud is dedicated to one organization.
- A virtual machine is a software computer on a shared host, walled off from the other virtual machines.
- Cloud vendors generally keep copies on more than one machine and in more than one region.
What is web hosting? It is the service that keeps a website’s files on a server and sends them to anyone who asks. MDN’s web server guide says that server can be hardware, software, or both working together. The hardware stores the files and connects to the internet, while the software understands addresses and delivers the pages.
You can point a laptop at the internet and serve files yourself. MDN says a host is usually a better idea, because that machine is more likely to stay available, connected, and on a stable address.
Before you upload photos, the JPG to WEBP Converter can turn a JPG into a smaller WebP. It runs in the browser, so the image is not sent to another service for the conversion.
What does the web server actually do?
A web server stores the site and answers each request with a file or an error.
On the hardware side, MDN lists HTML, images, CSS, JavaScript, and sometimes video. The software accepts a request, finds the document, and sends it back. If it cannot find the document, it returns a 404. The browser must send the file’s address, and the server must answer every request.
MDN splits servers into two kinds:
- A static server sends hosted files as they are. A computer plus an HTTP server is enough.
- A dynamic server adds an application server and, commonly, a database. It updates or builds the page before sending it.
- A large reference site is often a few templates plus a database, not thousands of hand-written HTML files.
HTTP itself is textual and stateless. MDN says neither side remembers the last exchange from HTTP alone, so a login or a cart needs extra software. That extra software is why some hosting plans are more than a folder you upload into.
How is a domain name different from hosting?
A domain name is the address people type. Hosting is the computer that holds the files.
ICANN’s glossary defines a domain name as a unique name behind the addresses people use to find pages, mail servers, images, and videos. It belongs to a company, an organization, an institution, or a person. In icann.org, icann is the second-level name and org is the top-level domain. The rest of a URL selects one page.
- Cloudflare’s domain guide says the name maps to a numeric address, so people type the name and computers use the number.
- Registries delegate registration to registrars.
- Cloudflare says there are currently over 300 million registered names.
- Buying the name does not put files on a server, so you still point the name at a host.
A URL is wider than the domain. Cloudflare’s example splits protocol, domain, and path. The host is not any of those three. It is the machine the address eventually reaches.
How does DNS connect the name to the server?
DNS is the lookup that turns the name you typed into the numeric address of a server.
Cloudflare’s fundamentals docs call DNS the internet’s phone book. The domain is the readable label, and the IP address is where the site lives. Records on authoritative servers can list the machines that host the content. The docs illustrate this with cloudflare.com and the address 103.21.244.0.
- When a domain is active and a record is proxied, those docs say Cloudflare answers with an anycast address instead of the origin address.
- Traffic spreads across the network, and the origin can stay hidden.
- That proxy is optional gear in front of a host.
- It does not replace the server that stores the files.
You can change the DNS records when you change hosts. The domain name stays the same. The numeric address, or the proxy in front of it, is what you update.
What kinds of plans are people describing?
Hosts sell a shared machine, a reserved machine, or cloud capacity.
| Plan people describe | What you are renting |
|---|---|
| Shared public cloud | Space on servers a vendor runs for many customers |
| Private cloud | A server or network dedicated to one organization |
| Infrastructure as a service | Servers and storage you build on, in the vendor’s data center |
Cloudflare’s cloud guide says the cloud is servers reached over the internet, plus the software and databases on them, in data centers. You do not run the physical machines yourself. A virtual machine is a simulated computer, sandboxed so others on the same host cannot see its files. One physical server can run many.
Cloudflare sorts the common deployments like this:
- A public cloud is run by an outside vendor and shared by many organizations. Several customers can rent space on one server. Cloudflare calls that multitenancy.
- A private cloud is a server, data center, or network wholly dedicated to one organization. That is the reserved case.
- Infrastructure as a service means you rent the servers and storage, then build on them. The vendor still runs the data center.
A glossary page for a common acronym did not resolve, so this section stays with those categories. Cloudflare’s virtual machine guide says providers offer these machines on shared servers, including for hosting.
How does a site stay available?
Availability is a connected server, spare copies, and a name that still points at a live address. MDN says a dedicated web server is typically connected, aside from downtime, and able to keep the same IP address. A home line often cannot promise that fixed address. The host’s job is to answer when a browser asks.
Cloudflare’s cloud guide says cloud servers in general should stay online even if one machine goes down. Vendors generally keep copies on multiple machines and in multiple regions. That is a different bet than one computer in a closet.
An anycast proxy adds another layer. If one location is busy, another can take the request, and a cache can answer repeats from a nearby copy. The host still has to hold the real files and restore them if a disk fails.
What should you put on the host?
Upload the HTML, CSS, JavaScript, images, and fonts the pages need, and keep heavy originals off the public folder.
MDN says publishing means uploading files to the server after you have chosen a host. A static site can be a set of finished files. A dynamic site also needs the application and the database. Either way, the bytes you upload are the bytes every visitor and every crawler will request.
Do this before the upload:
- Convert large photos first. The JPG to WebP converter is built for that step, in the browser.
- Keep a copy of the originals somewhere you control, separate from the public folder.
- After DNS changes, request the real URL and confirm the server returns the new file rather than an old copy or a 404.
Web design is the plan for those pages. Hosting is where the plan becomes a response from a server.
The image tools are a practical stop on the way, because a smaller image is a smaller file for that server to store and send.
Frequently asked questions
What happens if the server cannot find the file?
MDN says the web server must answer every request, at least with an error. If the URL does not match a file and the server cannot build one on the fly, it returns the familiar not-found error, status 404. Many designers spend real time on that error page because people hit it often. A static server can only send files it already has. A dynamic server may fill a template from a database first.
Why is the basic transfer protocol a poor place to store a login?
MDN describes that protocol as textual and stateless. Commands are plain text, and neither the browser nor the server remembers the previous exchange from the protocol alone. A server cannot, by that protocol itself, remember a password you typed or an unfinished checkout. That memory needs an application server or a similar layer. This is one reason a dynamic host is a different setup from a folder of finished files.
When can you move a domain to another registrar?
Cloudflare's domain guide says a name can be transferred after it has been registered for at least 60 days. You check the contact details, talk to the old registrar and the new one, ask for an authorization code, and remove any lock on the name. The registrar, not the host, handles that reservation. Moving the name does not by itself move the files on the server.
Does every home connection get a fixed address?
MDN says a dedicated web server can keep the same IP address all the time, which is called a dedicated IP address. It also says not every internet provider gives a fixed address on a home line. That is one reason publishing from a laptop is fragile. A host is typically maintained by someone else, stays connected except for downtime, and is more likely to be available than a computer you close at night.
What is the difference between a URL and a domain name?
Cloudflare's domain guide uses a learning-page address as the example. The domain name is the middle label people recognize. The protocol sits in front of it, and the path after it points at one page. ICANN makes the same split with its own site: the domain name selects the organization, and the rest of the address selects one resource on that site, such as a comments page. Hosting is still a separate purchase from the name.
Sources
- What is a web server? · MDN, 2026
- Domain name · ICANN, 2026
- What is a domain name? · Cloudflare, 2026
- How Cloudflare DNS works · Cloudflare, 2026
- What is the cloud? · Cloudflare, 2026
- What is a virtual machine? · Cloudflare, 2026