How to access my site without a domain?

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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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: