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 a third-party web proxy, such as skipdns.link
.
While accessing a website using a web proxy seems convenient, it might not be appropriate in all cases. You can use the Hosts File method if you get any errors.
- 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:
They 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 Chrome Extension
You can access your website by installing a third-party extension to the Chrome web browser.
https://chrome.google.com/webstore/detail/livehosts/hdpoplemgeaioijkmoebnnjcilfjnjdi
The website might appear broken, or some functions might not work as expected when accessing it using the above extension. That is because the extension uses a different URL (e.g., http://127.0.0.1/www.yourdomain.com/) to access the website.
Note:
They 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?