Accessing a computer by name in hosts instead of IP?
Posted on 2006-11-15
I've got a confusing situation but I think it boils down to basic theory, heres the situation first:
I'm developing local websites on my Mac and running Parallels (virtualization software), in it I am running Windows XP, in Windows XP I want to access my Mac's local websites.
I can do this by editing the hosts file on the WinXP machine and telling it to look for dummy.website.test at my Mac's IP address and it works a treat. However the Mac's IP address always changes...
Can you think of some way that will make it work without me having to edit the hosts file every time I change networks?