Find the IP address of a VMware ESXi host

66,095

Solution 1

If you really only have the guest’s IP address, you generally cannot obtain the host’s IP address. There may be some configurations where it could work, though.

From your (PC’s) perspective, the virtual machine is just another network-accessible computer. Even in the guest’s local network (broadcast domain), a VM cannot be distinguished from a real PC physically connected to a switch just by looking at its IP address and the way traffic takes to get there.

Solution 2

Theoretically, you may find that ESXi host can't be accessed because its IP address is beyond your scope.

But if you know its IP address range which you can access, the following tools ("ESXi host finder") can help you to find which one is the possible ESXi host:

ESXi Host Finder Picture

https://yinqingwang.wordpress.com/2016/01/18/esxi-host-finder/

Solution 3

If you have the vsphere client, you can open the console of a guest machine and the title bar will show you which host you are connected to: enter image description here

You can see in the example above that the XA_StreamDev is on a host (with its name faded out). If you ping that host name, you will be able to get its ip address.

To open the full console, right click your VM and select "Open Console".

Also, if you go to VCenter > Hosts & Clusters > you will be able to see a list of hosts - which again, you should be able to ping.

Share:
66,095

Related videos on Youtube

ρss
Author by

ρss

Do you have a question?

Updated on September 18, 2022

Comments

  • ρss
    ρss almost 2 years

    I have an IP address of a Guest virtual machine running on an VMware ESXi host. I don't know the IP address of this VMware host.

    How can I find the IP address of this VMware host?

    1. I have vSphere client software installed on my system.
    2. I can ping the IP of the guest machine and it replies. Thanks.
    • Daniel B
      Daniel B about 9 years
      What do you mean by “I can’t access the guest machine”? Are you referring to the guest OS’ credentials? Also, how would you use vSphere Client without having the host’s address?
    • ρss
      ρss about 9 years
      Yes, I don't have the credentials of the guest machine. I edited my question because of the the answer provided by @Fazer87. Also, how would you use vSphere Client without having the host’s address? I would ask the same to Fazer87
    • Daniel B
      Daniel B about 9 years
      You did write “I have access to vSphere client only.” Did you actually mean it or perhaps something else?
    • ρss
      ρss about 9 years
      From that I mean that it is installed on my system and I am permitted to use it.
  • ρss
    ρss about 9 years
    Thanks but this solution will only work if I am able to login to the guest machine via VMware client. In my case I am not able to login to the guest vm.
  • Fazer87
    Fazer87 about 9 years
    So you have a vm on a vsphere client and you only know the IP of the guest - hoping that from it you can ge the IP of the host?
  • ρss
    ρss about 9 years
    I tried to clear the arp cache of my windows machine and then pinged the guest vm machine. I then checked the arp cache and I never found the VMware host in the arp table. I thought maybe there I can find something, but unfortunately the VMware host never showed up. Your answer seems to be true. I shall just wait for some time before accepting it, maybe someone can provide me a hack. :) +1
  • Daniel B
    Daniel B about 9 years
    If the host doesn’t show up in your ARP table, it isn’t on the local network. Try tracert to get meaningful results.
  • ρss
    ρss about 9 years
    I tried tracert and the result is that the machine is just at one hop. This is fine because the machine is in DMZ and I am in the internal network. But tracert doesn't give any clue about the VMware host either! It seems like the Vmware host is transparently passing the traffic to the guest machine and vice-versa.
  • Daniel B
    Daniel B about 9 years
    Yes, of course. The VMware ESXi host operates a virtual network switch. Just like a real network switch, it is “invisible”.
  • iwolf
    iwolf about 8 years
    This tool just saved me several days of annoyance. Thank you!
  • Daniel B
    Daniel B over 6 years
    Finding a VM by IP address was not the goal here.
  • WesternGun
    WesternGun over 6 years
    Edited... I overlooked it. Only lacked the last step.
  • Hamed
    Hamed about 5 years
    how to download it ?
  • thilina R
    thilina R about 4 years
    download link not working
  • DavidPostill
    DavidPostill about 3 years
    Could you please edit your answer to give an explanation of why this code answers the question? Code-only answers are discouraged, because they don't teach the solution.