Page 1 of 1

Accessing services running inside Vms.

Posted: 16. Aug 2012, 13:38
by xoeon
I've 2 virtual machines that are running in 2 different hosts the OS Ubuntu.

Their address are:

Vm1: 192.168.56.101
Vm10: 192.168.56.110

I can access from inside each Vm the other one through ssh. On each Vm, it is running my service at the port 54311. The addresses of the service are:
Vm1: 192.168.56.101:54311
Vm10: 192.168.56.110:54311

I'm running a program that tries to connect from one Vm the address of my service at the other Vm. But I always get the error:

Retrying connect to server: ubuntu-linux10/192.168.56.110:54311. Already tried 0 time(s).

Maybe the port of the service isn't reachable to the Vm1. How can I see which Vm10 services I can access? And, how can I put my service to be reachable?

Thanks,

Re: Accessing services running inside Vms.

Posted: 16. Aug 2012, 14:53
by Perryg
It appears that you are using the host-only network, which will never work between different hosts.
Use Bridged instead.