You can easily access your websites without changing nameservers or DNS using a third-party web proxy or browser plugin or modifying your workstation's /etc/hosts file.
Get the Server IP Address
- Log in to cPanel.
- The server IP address is displayed as "Shared IP Address" under "General Information" on the right sidebar.
Method 1: Access Using a Web Proxy
You can access your website using one of the following third-party web proxies:
https://hosts.click
https://nfpreview.com
https://skipdns.link
https://pro.hosts.click
https://hosts.cx
(no longer active)
While accessing a website using a web proxy seems convenient, it might not be appropriate in all cases. If you get errors, you can use the Hosts File method.
hosts.click:
- Go to
https://hosts.click
- Enter the Server IP.
- Enter your website URL.
- Click Create a Preview URL.
- Click the preview subdomain.
- Done!
nfpreview.com:
- Go to
https://nfpreview.com
- Enter your domain name (e.g.,
yourdomain.com
orwww.yourdomain.com
, withouthttps://
).
*Replaceyourdomain.com
with your actual domain. - Enter the Server IP.
- Click Create Preview Link.
- Click the preview link.
- Done!
skipdns.link:
- Go to
https://www.skipdns.link
- Enter the Server IP.
- Enter your website URL.
- Select Flexible SSL.
- Click Go.
- Click Open.
- Click Yes. Proceed with the proxy.
- Done!
Note:
These tools are third-party. MechanicWeb does not endorse their use and is not affiliated with them.
You can also access the site by modifying the hosts file.
Method 2: Modify the Hosts File
Microsoft Windows:
Perform the following steps to modify the /etc/hosts file on a Windows workstation:
- Open the Start menu.
- Type "Notepad" when the start menu is open.
- Right-click Notepad and select "Run as Administrator."
- In Notepad, open the file
C:\Windows\System32\Drivers\etc\hosts
:
Click File > Open
Select "All Files" next to "File name:"
Navigate to C:\Windows\System32\Drivers\etc
Select "hosts"
Click "Open" - Add the server IP address and your domain under the last entry in the file, for example:
1.2.3.4 yourdomain.com
1.2.3.4 www.yourdomain.com
or
1.2.3.4 subdomain.yourdomain.com
Note:
Replace [1.2.3.4] with the server IP address and [yourdomain.com] with your domain name. - Save the file.
- Reload your browser for the changes to take effect.
Note:
Your workstation's operating system will not remove your changes to the /etc/hosts file. Make sure to manually remove the domain name and server IP address in the /etc/hosts file after troubleshooting is complete or to access your website from the current server.
Test If the Modification Is Working
- Open a Command Prompt on Windows (Start menu > Type cmd) or a Terminal on Linux and macOS.
- Type the following command:
ping www.yourdomain.com
- The response should reflect your server IP:
PING www.yourdomain.com (1.2.3.4
) 56(84) bytes of data.
64 bytes from www.yourdomain.com (1.2.3.4
): icmp_req=1 ttl=58 time=1.40 ms
You should now be able to view your websites without changing nameservers or DNS.
macOS and Linux:
Perform the following steps to modify the /etc/hosts file if you are using macOS or Linux on your workstation:
- Open the /etc/hosts file on your workstation with your preferred text editor.
- Add the server IP address and your domain under the last entry in the file, for example:
1.2.3.4 yourdomain.com
1.2.3.4 www.yourdomain.com
or
1.2.3.4 subdomain.yourdomain.com
Note:
Replace [1.2.3.4] with the server IP address and [yourdomain.com] with your domain name. - Save the file.
- Reload your browser for the changes to take effect.
Method 3: Access Using a Browser Extension
You can access your website by installing a third-party extension to the Chrome web browser.
Google Chrome:
https://chrome.google.com/webstore/detail/livehosts/hdpoplemgeaioijkmoebnnjcilfjnjdi
https://chrome.google.com/webstore/detail/virtual-hosts/aiehidpclglccialeifedhajckcpedom?hl=en
When accessing the website using the above extensions, the website might appear broken, or some functions might not work as expected. That is because the extension uses a different URL (e.g., http://127.0.0.1/www.yourdomain.com/) to access the website.
Mozilla Firefox:
https://addons.mozilla.org/en-US/firefox/addon/vhost-simulator/#:~:text=Click%20the%20VHost%20icon%20in,Host%20in%20the%20Host%20field
Note:
These tools are third-party. MechanicWeb does not endorse their use and is not affiliated with them.
SSL Error When SSL Is Not Installed
If you get an SSL error (e.g., your connection is not private) when accessing the website, you can access it without installing SSL:
How to access a website when SSL is not installed?
How to install SSL certificates?