How to Host a Website Without a Domain Name
A website can run without a purchased domain on a provider subdomain, a cPanel preview URL or a VPS IP address. A provider subdomain is usually the simplest temporary HTTPS option; IP certificates need separate validation and renewal. Add your own domain later by updating DNS, site settings and SSL without rebuilding the content.
For people building a site before buying a name, or testing a migration before switching DNS.
knowledge
- Read time
- 4 min
- Sections
- 7
- Updated
- 14 Nov 2026
- Written by
- WebJi® team
Last editorial update: 14 November 2026. Prices follow the dated sources on this page; checkout confirms current charges.
Why a website can run without a domain name
A website runs without a domain because hosting and a domain are separate things: the server answers on its IP address whether or not a name points at it. A domain is only a DNS record that turns a typed name into that IP, and it can be added at any point.
That gives you three temporary addresses to publish on while you choose, register or transfer a name. Each one serves the same files that will later sit behind the real domain, so nothing is rebuilt when the name arrives.
| Address | Example | HTTPS possible? | Works on shared hosting? | Best use |
|---|---|---|---|---|
| Provider subdomain | yoursite.hostname.tld | Yes | Yes, where the host offers one | Sharing a draft with a client |
| cPanel preview URL | http://SERVER-IP/~username/ | No | Yes, unless disabled | Checking a fresh upload |
| Bare server IP | http://SERVER-IP/ | Requires an IP certificate and validation | Not a reliable site selector | A new VPS or dedicated server |
Option 1: publish on a temporary subdomain
A temporary subdomain is a hostname under a domain the provider owns, pointed at your account's document root, usually public_html. Because it is a real hostname, a free Let's Encrypt certificate can be issued for it, giving you HTTPS before you own a name.
On WebJi® hosting, ask support at support@webji.services to set one up for the account; the DNS record sits on the provider's side, so no registrar is involved. If the site does not exist yet, install WordPress or the website builder from cPanel and point the subdomain at that install. The address is temporary, but the content stays when the domain is attached.
Option 2: use the cPanel preview URL
The cPanel preview URL is http://SERVER-IP/~username/, built from the server IP and the account username shown in cPanel. It serves public_html directly and needs no DNS at all.
- Log in to cPanel for the hosting account. The billing client area is a different login.
- Copy two values from the General Information panel: Current IP Address and the username.
- Build the address: http://, the IP, /~, the username, and a trailing slash.
- Open it in a private window. The index file from public_html should appear.
Use this plain-HTTP preview only for non-sensitive checks; do not submit passwords, payment details or customer data through it. Some servers also disable the tilde path (Apache's mod_userdir) for security, in which case the link returns 404 although the site itself is fine — use option 1 instead.
Option 3: serve the site from the server IP
On a VPS or dedicated server, http://SERVER-IP loads the default virtual host, which is enough to confirm a fresh install before DNS exists. On shared hosting this does not work, because hundreds of accounts share one IP and the server cannot tell which site you want.
The plain HTTP IP address and preview URL shown here are test addresses, not a finished public identity. Let’s Encrypt now issues short-lived IP address certificates, so HTTPS on an IP is possible with validated control and frequent automated renewal; it is not supplied merely by typing the IP.
Test the real domain early with a hosts-file entry
A hosts-file entry makes only your computer resolve a domain to your new server, so you can preview the site under its final name before changing DNS. It is the standard way to check a migration while the old host still serves everyone else.
Add two lines, replacing the IP and the domain with yours:
203.0.113.10 example.com
203.0.113.10 www.example.com
- Windows: open Notepad as Administrator and edit C:\Windows\System32\drivers\etc\hosts, then run
ipconfig /flushdns. - macOS: run
sudo nano /etc/hosts, save, thensudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. - Linux: edit /etc/hosts with sudo; on systemd-resolved systems run
resolvectl flush-caches.
Delete the lines when testing ends. A forgotten entry is the usual reason a site looks right on one laptop and wrong everywhere else.
What hosting without a domain cannot give you
A domain-free site loads, but it cannot have branded email, portable search rankings or an address customers will remember. These gaps grow with the site, so the temporary stage should be short.
- Email: mailboxes like sales@yourbrand.in need MX records on a domain you control.
- SEO: pages on a provider subdomain can be indexed, but links and rankings accrue to an address you do not own. See subdomain vs subdirectory for how search engines treat hostnames.
- Portability: a provider subdomain stays behind if you change host.
- Trust: an IP or a long provider address on a shop sign or Instagram bio looks unfinished.
How to attach a domain later without rebuilding
Attaching a domain is a configuration change: the files, database and design stay in place, and only DNS, the site address and the certificate change. The whole switch normally takes an afternoon plus DNS propagation.
- Register or transfer the name through domain registration in India.
- Add it in cPanel under Domains, with the document root set to the folder that already holds the site.
- Point DNS: set the nameservers from your WebJi® welcome email at the registrar, or add A records for @ and www to the server IP.
- Update WordPress: in Settings → General, change WordPress Address and Site Address to the new domain.
- Issue SSL: run AutoSSL in cPanel for the new name.
- Redirect the old address with a 301 so shared draft links land on the domain.
Hosting for the site starts with WebJi® shared hosting at ₹299 a month before 18% GST on the Launch plan, with cPanel and free SSL. The domain is a separate line you can add whenever you are ready.
Frequently asked questions
Why does my cPanel preview URL show a 404?
Usually because the server has the tilde (~username) path disabled for security. The site files are fine. Ask support for a temporary subdomain instead, or test with a hosts-file entry pointing your intended domain at the server IP.
Can Google index a site that has no domain?
A provider subdomain can be indexed; a bare IP rarely ranks and a preview URL should not be indexed at all. Keep test addresses out of search with a noindex tag, and launch publicly only on your own domain so rankings stay with you.
How long after adding a domain will the site load on it?
An A-record change shows once the old record's TTL expires, often within an hour. A nameserver change can take several hours and sometimes up to a day as resolvers refresh. A DNS propagation checker shows which regions see the new IP.
Will WordPress links break when I switch from the temporary address?
Images and internal links saved with the old address will keep pointing at it. After updating the site address, run a search-and-replace on the database for the old URL, then add the 301 redirect so any missed link still reaches the new domain.
Last editorial update: 14 November 2026. Prices follow the dated sources on this page; checkout confirms current charges.
Ready to get started with WebJi®?
Join 12,000+ businesses across India and overseas. INR pricing, 18% GST shown before payment and 24/7 email support in Hindi and English — average first reply under 60 minutes.