How can I develop a website without pointing it to WPX Hosting?

In the following tutorial we will explain how you can view your website on our hosting platform WITHOUT the need to edit your existing records at your domain provider.

This method can help you simplify the development of your new website on our hosting if you don’t want to affect the live version on your previous hosting. It can also help you develop your website on a domain name which you’ll register in future.

1.1 Overview:

Basically, the ‘hosts’ file overrides your integrated DNS client, which is used every time you try to load a website with a top-level domain (TLD) via your browser. So instead of this DNS client, to send requests to the worldwide domain name servers (to find out where this website is hosted), it

will start directly to route requests to the web server of the IP address defined.

The file is contained in each operating system no matter if it’s Linux, Windows, Mac and etc.

1.2 Collect the needed information, like Server IP address and your domain name.

Before starting, you should be aware of which domain name you are about to use and it should be something like test-site.com (we will use this name as an example in this tutorial).

The second essential thing is the Server IP address which you can acquire via your WPX Dashboard, please check the next screenshot to see where exactly you can find the one assigned to your service:

2. In basic terms, here is how you can change the ‘hosts’ file:

(For Windows Users) Click Start > All Programs > Accessories.

2.1 Right-click Notepad and select Run as administrator.

(If you are using windows 10 you could also write Notepad in your search box and then click the right button over it to Run as administrator)

2.2 Click Continue on the Windows needs your permission UAC window.

2.3 When Notepad opens, click File > Open.

2.4 In the File name field, copy & paste:

C:\Windows\System32\drivers\etc\hosts

2.5 Click Open.

2.6 Make the necessary changes to the file:

2.7 Click File > Save to save your changes.

It is nearly identical for other Operating Systems, just open the ‘hosts’ file via file editor under administrative privileges and edit your file.

You can check out this article on Wikipedia in order to find out which might be the correct path for your operating system:

https://en.wikipedia.org/wiki/Hosts_(file)

If you get stuck at any point, please approach our support team on live chat through the bottom right-hand widget on your screen now.

What about editing your hosts file on a Mac?

1. Use the key combination Command + Space.

2. Type in ‘Terminal’ and open the application.

3. In the application, you need to open the hosts file. This can be done by typing down the following code:

sudo nano /etc/hosts

4. In the application, make the necessary changes to the file by adding the IP and the domain of the website right after that, the same way it is on the picture below.

5. Save the file by using the combination of Control(^) + O.

6. You can then exit the file by using the combination of Control(^) + X and freely closing the Terminal Application after that.