How to get IP address of Virtual machine
I need to run my program on a unix machine which is hosted in virtual machines.
When my program tries to get IP address of unix machine I am getting an Exception, this I guess is due to program running on Virtual Mahine. Hence my program is not proceeding, can you please let me know how to configure this.
I am able to get my IP address running on Windows machine.
Here is code I am using to run it on Windows
String strAddr = InetAddress.getLocalHost().getHostAddress();