Skip to content

Host a Website from a Home PC

decerto edited this page Aug 11, 2026 · 1 revision

Host a website from a home PC on Windows

You can host a real website from a Windows PC at home. Nothing about Windows stops you, and you do not need Windows Server — a Windows 11 machine does everything a rented server does. What decides whether it works is your internet connection, not your computer.

This page covers what to check first, what to change on the machine, and when to give up and rent something.


Check these three things before anything else

1. Can anything reach you at all?

Many broadband providers put customers behind CGNAT, where one public address is shared between many households. Nothing from the internet can reach you, and no amount of router configuration changes it.

Compare the address your router shows as its WAN address with what a "what is my IP" service reports. If they differ, you are behind CGNAT. Ask your provider for a public IP — many will give you one free or for a small charge — or use a tunnel (Cloudflare Tunnel is the usual answer) instead of opening ports.

2. Are ports 80 and 443 blocked?

Plenty of residential lines block inbound 80 and 443 to discourage exactly this. Test from outside your own network — a phone on mobile data is the easiest way, since a request to your own public address from inside the house often loops back and lies to you.

If 80 is blocked but 443 is not, you can still get certificates: use the DNS challenge, which needs no inbound port at all. WinPanel does this automatically once a Cloudflare token is connected.

3. Does your IP address change?

Home connections are usually given a new address every so often, sometimes at every reconnect. When it changes, your domain points at somebody else's connection until you update it.

Fix it with a dynamic DNS updater. If your domain is on Cloudflare, a small scheduled script against their API is enough — and it keeps everything in one place.


Set the machine up properly

Stop it sleeping. This is the big one. A sleeping PC is an offline website, and worse, a sleep/wake cycle is the usual cause of the failure where the service wrapper is killed but the app underneath survives — the service reads as stopped while the old process still holds the port, so it can never start again. WinPanel detects and clears that automatically, but the outage in the meantime is real.

Settings → System → Power → Screen and sleep → "When plugged in, put my device to
sleep after" → Never

Also turn off hibernate and fast startup, and set Windows Update to restart only during hours you choose.

Give it a fixed local address. A DHCP reservation in your router, so the port forwarding does not stop working when the PC gets a new local IP.

Forward the ports. 80 and 443 from the router to that address. Nothing else — do not forward the panel's own port 8443 unless you need to reach it from outside, and never forward RDP.

Use a wired connection. Wi-Fi is fine until it is not, and diagnosing an intermittent website that is really an intermittent access point is thankless.

Back it up. A home PC has no snapshots and no support contract.


Do not send email from home

Hosting websites at home is reasonable. Hosting email is not:

  • Outbound port 25 is blocked on virtually every residential connection.
  • Residential IP ranges are on blocklists by default, so even when 25 is open, your mail is refused or filed as spam.
  • You cannot set the reverse DNS record for an address you do not own, and mail servers check it.

Host the sites at home and put the mailboxes somewhere with a clean, static IP.


When to rent a server instead

Stay at home Rent a VPS
Personal site, portfolio, blog Anything a customer pays for
Staging or a development mirror Anything with an uptime expectation
A game server or hobby project Anything sending email
Learning how hosting works Anything you would be embarrassed to lose

A small Windows VPS is £15–£40 a month, which is not much against a power bill and an evening of router configuration. The skills transfer exactly — the setup is identical.


Then install the panel

WinPanel treats a Windows 11 PC the same as a server: it registers each site as a Windows Service, runs Caddy in front for domains and HTTPS, and clears the sleep/wake orphan described above every minute. A desktop machine actually avoids the most common problem of all, because IIS is not installed to fight over the ports.

Clone this wiki locally