find host ip address when guest machine is connected to host

Milad.Nozari

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.

Lorenzo Ancora

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]

編集
0

コメントを追加

0

関連記事

分類Dev

how to get container host machine ip address and container name in EKS

分類Dev

how to access Apache server running on host os using the name other than the ip address or localhost on vmware guest

分類Dev

Virtualbox: get host IP address

分類Dev

Set SSH Host IP Address on Rackspace for Ansible

分類Dev

PHP malformed IP address and host. What is this?

分類Dev

VirtualBox Host ssh to Guest

分類Dev

VirtualBox Host ssh to Guest

分類Dev

Getting IP Address of website client returning host IP

分類Dev

Setup dnsmasq to resolve host name to local machine's IP

分類Dev

Add a line "<IP address of host> <FQDN of host> in /etc/hosts using Ansible

分類Dev

Assign LAN IP address to Docker container different from host's IP address

分類Dev

How does a browser distinguish whether the address in the address bar is an IP address or a Host name?

分類Dev

What features should I look for when building a Virtual Machine Host?

分類Dev

Network with virtualbox (OS X host/Fedora guest)

分類Dev

VirtualBox: How to sync host and guest time?

分類Dev

wget: unable to resolve host address

分類Dev

Is the allocated number of CPUs freed to the host machine when I pause the virtual machine?

分類Dev

Change PS1 color when connected to other host via SSH

分類Dev

Traefik forwarding to a host and overriding IP

分類Dev

Get host IP in docker container

分類Dev

How to get IP address of cellular network when device is connected to WiFi in Android

分類Dev

Ansible Get Host Name and IP for Inventory Host groups

分類Dev

Raspberry Pi: "Cannot find host"

分類Dev

VirtualBox: make host and guest OS talk between each other

分類Dev

How to share Internet connection of VMWare guest with host in VMWare Player?

分類Dev

VirtualBox guest OS internet access over host's configured proxy

分類Dev

Can not ping from guest (Red Hat) to host on VirtualBox

分類Dev

How to tunnel host traffic through guest in Virtualbox using Vagrant

分類Dev

High IO on KVM/LXC host will hang server but not on guest (Proxmox/Debian)

Related 関連記事

  1. 1

    how to get container host machine ip address and container name in EKS

  2. 2

    how to access Apache server running on host os using the name other than the ip address or localhost on vmware guest

  3. 3

    Virtualbox: get host IP address

  4. 4

    Set SSH Host IP Address on Rackspace for Ansible

  5. 5

    PHP malformed IP address and host. What is this?

  6. 6

    VirtualBox Host ssh to Guest

  7. 7

    VirtualBox Host ssh to Guest

  8. 8

    Getting IP Address of website client returning host IP

  9. 9

    Setup dnsmasq to resolve host name to local machine's IP

  10. 10

    Add a line "<IP address of host> <FQDN of host> in /etc/hosts using Ansible

  11. 11

    Assign LAN IP address to Docker container different from host's IP address

  12. 12

    How does a browser distinguish whether the address in the address bar is an IP address or a Host name?

  13. 13

    What features should I look for when building a Virtual Machine Host?

  14. 14

    Network with virtualbox (OS X host/Fedora guest)

  15. 15

    VirtualBox: How to sync host and guest time?

  16. 16

    wget: unable to resolve host address

  17. 17

    Is the allocated number of CPUs freed to the host machine when I pause the virtual machine?

  18. 18

    Change PS1 color when connected to other host via SSH

  19. 19

    Traefik forwarding to a host and overriding IP

  20. 20

    Get host IP in docker container

  21. 21

    How to get IP address of cellular network when device is connected to WiFi in Android

  22. 22

    Ansible Get Host Name and IP for Inventory Host groups

  23. 23

    Raspberry Pi: "Cannot find host"

  24. 24

    VirtualBox: make host and guest OS talk between each other

  25. 25

    How to share Internet connection of VMWare guest with host in VMWare Player?

  26. 26

    VirtualBox guest OS internet access over host's configured proxy

  27. 27

    Can not ping from guest (Red Hat) to host on VirtualBox

  28. 28

    How to tunnel host traffic through guest in Virtualbox using Vagrant

  29. 29

    High IO on KVM/LXC host will hang server but not on guest (Proxmox/Debian)

ホットタグ

アーカイブ