Page 1 of 1

How to get VM ip address from command line

Posted: 24. Feb 2010, 12:46
by Y2J
Hello, i'm working with VirtualBox by command line.
I'd like to know how to get the ip address of my virtual machine from command line.

Thanks in advance

Re: How to get VM ip address from command line

Posted: 24. Feb 2010, 16:25
by Perryg
From within the guest use terminal or command window.
ifconfig -a (Linux) ipconfig /all (Windows)

Re: How to get VM ip address from command line

Posted: 24. Feb 2010, 17:02
by Y2J
perry i mean how to get ip address of the vm from the command line of the os where virtualbox is installed

Re: How to get VM ip address from command line

Posted: 24. Feb 2010, 17:06
by baf
Try VBoxManage guestproperty enumerate <MachineName>
there you find:
Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 10.0.2.15, timestamp: 1267018722416154000, flags:

Re: How to get VM ip address from command line

Posted: 24. Feb 2010, 18:52
by Y2J
thanks a lot baf

Re: How to get VM ip address from command line

Posted: 3. Apr 2014, 23:59
by makco10
Ip of the phpvirtualbox then port

Example:

192.168.0.10:9000

In the Remote Desktop of Windows

;)