views:

20

answers:

1

Hi

I am having a vm image of an ubuntu server. Vmware is setup and it shows the login screen and allows me to login. Now I want to get the ip address that the vmware gave to this machine instance. I tried ifcong -a but it doent show any ip address other than 127.0.0.1. Am i doing it correctly or missing something? Kindly help. thanks

A: 

The public IP? You can visit link text

santiagobasulto
i doubt if its the public ip address.. the scenario is this - the server has a web application on it. I need the ip-address of the machine instance to add to the /etc/hosts file on my computer so that i can access that website from a browser on my computer
naiquevin
have you tryied with "ip addr" command? Sorry, i don't understand quite well.
santiagobasulto
that command also gives no other ip than 127.0.0.1i tried this command on my computer and it shows 3 things, lo, eth0 and pan0 . the eth0 part shows me my ip address i need to get the same thing for the machine instancebut on the virtual machine , it shows 2 lo, eth1
naiquevin