I always connect to my VM using the IP address. But am not able to connect using the hostname.
Now when I try to access webservices configured on that machine i cannot do so as it gives me a hostname not resolved error.
Is it possible to have the IP refer the hostname in any way?
Do some settings need to be changed?
Thank you
On Windows change this file
C:\WINDOWS\system32\drivers\etc\hostsand on Linux this file/etc/hosts.Add: