Report this

What is the reason for this report?

How to access my site without a domain?

Posted on January 24, 2019

I used Wordpress One-click application. Then, I opened my site in my web browser via its IP address. I configured it without a problem. But when I connected to my droplet via console, it prompted me to introduce a domain. Since I own a domain, I didn’t think about it and I just wrote it. However, then I realized I didn’t want my site to be available on said domain until I finished the webpage. Now I want to turn back, because I can’t access my site from the droplet’s IP address and neither from the domain (which is expected since I haven’t and don’t want to associate it with my website in my registrar yet).

How can I configure my droplet so I can access my website using only its IP address? I tried changing ServerName and ServerAlias on sites-enabled and sites-available to the droplet’s IP, but it didn’t work.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey friend,

I do not recommend building the site and then switching to the domain afterward, this is a good way to run into problems after the switch and have to troubleshoot a live site that you thought was complete. Instead, I recommend changing your host file on your system to simulate the DNS change, allowing you to work on the site under your domain while everyone else continues to see the domain hosted elsewhere until you’re ready. Here is a guide on editing your host file:

https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/

Jarland

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.