Professional Documents
Culture Documents
You can save quite a bit of money if you host your website rather than
using a web hosting provider.
To self-host, you need to be comfortable configuring your router and
have a valid domain name and a web server.
Your web server can be a computer running Windows, macOS, or Linux
that's not your primary work machine.
This article outlines how to host a website and explains everything you need to
be successful at it.
First, you need the ability for your audience to reach your site, which
implies a domain name. But chances are your home's internet
connection doesn't include a static IP address, so you'll also need to
employ dynamic DNS.
In addition, your router is probably configured to reject incoming
connection requests—this is how it keeps the machines on your network
safe(ish) from Internet ne'er-do-wells. So you'll need to make sure that
requests for web pages (and only those) are let through your router.
Finally, you'll need a machine within your home network that runs the
webserver which will serve your content to visitors.
1. Get a domain name. For visitors to reach your site, in general it's useful
to have a domain name. This saves them from the burden of having to
remember an IP address like 151.101.130.137 (Lifewire's IP address).
You can check our guide to getting your own domain name, which is a
relatively easy process.
2. Check how your Internet Service Provider (ISP) assigns your IP address.
As a consumer, they most likely give you a dynamic IP address, meaning
it may change over time. If you're fortunate enough to have a static IP
address, you can skip to Step 4.
3. If you have dynamic IP, you will need to sign up for dynamic DNS
service. This service will regularly update your domain name to point to
whichever IP address your ISP assigns you. Take a look at this
introduction to DDNS for more details.
Your DDNS provider may also be able to register you for a domain
name. This is a convenient way to go, as you can be sure there won't be
any issue updating both DNS and IP among two different providers.
4. If you have static IP, you'll just need to make sure your domain name
(wherever you registered it) points directly to your home's IP address.
You can usually do this in the control panel of the service which sold you
your domain, by adding an "A record" to it's settings. The process will be
similar to the one described here to give your Tumblr a custom domain.