LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-16-2012, 06:25 AM   #1
xeon123
Member
 
Registered: Sep 2006
Posts: 364

Rep: Reputation: 16
Accessing services running inside Vms.


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,
 
Old 08-16-2012, 07:45 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Try running the following on each vm first and then we can see whether the local firewalls are blocking connections
Code:
iptables -L
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running multiple desktop VMs lmann Linux - Virtualization and Cloud 3 07-01-2012 11:04 AM
[SOLVED] Accessing /proc from inside a VM dazdaz Linux - Virtualization and Cloud 4 05-20-2012 11:46 AM
Running Multiple VMs on a Limited RAM Hi_This_is_Dev Linux - Virtualization and Cloud 7 09-26-2010 08:39 AM
[Tcptraceroute/Traceroute/Ping] Windows VMs & Linux VMs BiFo Linux - Networking 0 08-24-2010 02:07 PM
accessing variables inside a function bahadur Programming 1 03-27-2005 04:41 AM


All times are GMT -5. The time now is 04:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration