I have an IP address of a server (http://185.207.xxx.xxx/test2.php) and I want to open this as (http://domainname.com/test2.php) from my system.
when i edited my hosts file in /etc/hosts with following entry
185.207.xxx.xxx domainname.com
but it is showing below error:
Error: The requested URL can not be retrieved
Can anyone help me in resolving this?