Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 49688  / 3 Years ago, sun, may 2, 2021, 5:31:32

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 system32drivershosts 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.


More From » networking

 Answers
5

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.


[#29147] Tuesday, May 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
poous

Total Points: 81
Total Questions: 101
Total Answers: 119

Location: Cambodia
Member since Sat, Oct 3, 2020
4 Years ago
;