unable to ping win7 from virtual xp

zeidbop

New member
Local time
11:57 AM
Messages
2
I am using a virtual xp from Virtual PC 2007. I cannot ping to the Windows 7 host using the host name. If I use the IP address it works fine. I am trying to connect from the virtual xp to the Windows 7 SQL Server instance. I can connect using the IP address but given that it may change I would rather use the machine name and not the IP address.

Thanks

David
 

My Computer

OS
Windows 7 Ultimate
I haven't set up virtual xp on a Win7 box, so all I can tell you right now is something of a hack.

In the XP system, edit C:\Windows\System32\drivers\etc\hosts with notepad.
Add a line at the bottom:
<your IP> name_of_the_win7_host

Obviously, since you're putting in the IP, you'll have to keep it current, but this at least adds a level of indirection so you can edit it in one place but refer to the name wherever you want.

I'll check around to see what I can find for a more elegant solution in the meantime.

Cheers!
Greg Oliver [MSFT]
 

My Computer

OS
Windows 7
Thanks, this was one possibility but the problem is that my DHCP server has a tendency to change the IP addresses of the machines attached to it so this would not work as a permanent solution.

I should add that I have not tried this with xpmode (seeing as that may have all the correct settings)

David
 

My Computer

OS
Windows 7 Ultimate
Back
Top