LinuxQuestions.org
Review your favorite Linux distribution.
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 07-30-2012, 04:43 AM   #1
daudiam
Member
 
Registered: Mar 2010
Posts: 68

Rep: Reputation: 15
How to access tomcat running in VMWare from outside it ?


I am running CentOS inside VMWare 4 (my main OS is Ubuntu 11.04). When I run tomcat in the VM at port 8080, I am able to access it from the browser via localhost:8080

For accessing it from outside the VM (i.e. in my Ubuntu), I noted the address Centos gave me when I typed ifconfig, and used that to access the tomcat from Ubuntu. The address was something like :

http://172.16.217.128/

Now, the problem is that I wish to access my Ubuntu machine, which is on LAN, through another computer connected to the LAN. Normally, if tomcat was running on my Ubuntu system (not in VM), then I would be able to access the tomcat server from another system through something like 192.168.10.34:8080 (where 34 is my computer's id). But addresses like 172... are not allowed, I think.

How can I access the tomcat server running on VM in a machine from another machine when both are in the same LAN ?
 
Old 07-30-2012, 07:58 AM   #2
ilesterg
Member
 
Registered: Jul 2012
Location: Philippines
Distribution: CentOS, Oracle Linux, AIX
Posts: 354

Rep: Reputation: 46
You are using 192.x and 172.x, which means you are on different LANs. How is your 'LAN' physically configured/set up?
 
Old 07-30-2012, 10:13 AM   #3
daudiam
Member
 
Registered: Mar 2010
Posts: 68

Original Poster
Rep: Reputation: 15
172.x is the address my VM is giving me. My LAN address uses the 192.x scheme
 
Old 07-30-2012, 09:24 PM   #4
ilesterg
Member
 
Registered: Jul 2012
Location: Philippines
Distribution: CentOS, Oracle Linux, AIX
Posts: 354

Rep: Reputation: 46
Quote:
Originally Posted by daudiam View Post
172.x is the address my VM is giving me. My LAN address uses the 192.x scheme
I see. The best option that I could see is to configure the VM to be on the same network as your LAN, i.e. configure it with an address of 192.x.x.x
 
  


Reply

Tags
tomcat, vmware


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
Is it possible to shared vmware files between two vmware applications running on two redhatwannabe Linux - General 1 06-18-2010 08:18 AM
Configuration to access internet from vmware(host=winXP, guest on vmware=linux-5) afz_linux Linux - Newbie 3 12-30-2008 01:20 AM
vmware error: running vmware-config-tools.pl grap-pack Linux - Newbie 1 12-02-2008 02:38 PM
I tried ReactOS in VMware and now VMware is running really slow MegaSvensk Linux - Software 7 09-30-2007 03:10 PM
Configure Redhat Linux on VMWare to use Apache and Tomcat beltzaser Linux - Networking 0 06-25-2004 04:02 AM


All times are GMT -5. The time now is 07:33 PM.

Main Menu
Advertisement
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