Retrieve a Guest machine Hosts' Computer Name within Guest
Posted: 9. Jul 2011, 16:54
Using a Windows 7 Host and a Windows 7 Guest, is there anyway within the Guest to find out the Host's computer name (preferable) or the IP address, from the command line, or via some API call, or some other way that could be done from say within a batch file (or .net app maybe).
One reason (though not the only one) is that sometimes I need to connect through RDP via the host machine, rather than direct, but if I move the guest machine around between host machines I don't know which host machine to connect to. I send a message when a guest machine starts up so that I know it's online, the IP address, etc but want to include the host machine so that I can then also use this to connect to if for some reason I can't connect direct.
Does any of that make sense? Am I missing something obvious?
Help me, Obi-Wan Kenobi*. You're my only hope.
Thanks in advance.
*Insert your own name
One reason (though not the only one) is that sometimes I need to connect through RDP via the host machine, rather than direct, but if I move the guest machine around between host machines I don't know which host machine to connect to. I send a message when a guest machine starts up so that I know it's online, the IP address, etc but want to include the host machine so that I can then also use this to connect to if for some reason I can't connect direct.
Does any of that make sense? Am I missing something obvious?
Help me, Obi-Wan Kenobi*. You're my only hope.
Thanks in advance.
*Insert your own name