I have an XP virtual machine on an Ubuntu installation. I can connect to the internet in the guest OS(XP). Now I want to find the ip address of the host OS(Ubuntu). I can find the guest IP address in the Connection Properties in XP, but how do I find the IP of the ubuntu machine?
You should know, I want to add a DNS record in my \system32\drivers\hosts so that I can access a virtual host in my Ubuntu (apache). Using ifconfig
, I can see that I have only three adapter. One is my LAN adapter(ethernet), the loopback and a wireless adapters. I have even tried the Gateway address.
Simply open xterm or press CTRL+ALT+F1 and write:
ifconfig
The "inet" string is the ip. Of course this is the local IP and not the public one.
To obtain your public IP (reachable from the outside) visit www.whatismyip.com (or an equivalent web site) or enter in your router interface (it will tell you the public ip). For the hosts file there is a specific guideat www.rackspace.com.
Bye, hope you will solve.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加