Link to home
Start Free TrialLog in
Avatar of gilpili
gilpili

asked on

Accessing a (Local) Tomcat Server through Microsoft Virtual PC

I am attempting to access my Tomcat server on my "real" PC through a browser on a (locally installed) Virtual PC.  I've tried using both the "real" computer name and ip address but with no success:

http://computername:8080
http://192.168.x.xxx:8080

Do I need to change some settings within the VPC in order for it to "see" tomcat?  I pinged my real ip address through the VPC prompt and it does see the ip, but it does not see the 8080 port.  Thanks for any help you can give!

Gil
Avatar of Gary Case
Gary Case
Flag of United States of America image

Your virtual machine should be set to use your "real" network adapter and should otherwise be set up like any other machine would be (dynamic IP via DHCP, etc.).   Your real system should be connected to a router or switch so packets from the virtual machine have a path to the real machine -- is that the case here??

If you want to use this without an externally connected switch or router, you'll need to install the Microsoft Loopback Adapter on the "real" machine (host) and change the settings for your virtual machine to use that adapter instead of the "real" network adapter.   I described that process in this recent question (this link is to my answer):  https://www.experts-exchange.com/questions/24361255/Virtual-PC-network.html#24252829
Avatar of gilpili
gilpili

ASKER

The VPC is using the same adapter as the real PC.  I am using a cable modem which is attached to  a D-LInk router (phone) which is in turn attached to a Netgear wireless router, which is in turn attached to the PC.  Should I be configuring one of the routers -- the wireless since it is the one directly attached to the PC?  Thanks for your help!

Gil
Which router is your DHCP server?

What is the IP on the "real" PC and on the virtual PC?

How EXACTLY do you access the Tomcat server from another "real" PC on your network?   The virtual PC should work exactly the same way.   Look carefully at how you've got them each configured & you'll probably "see" what the issue is.   Just remember that the virtual PC is, for all intents & purposes, just another PC on your network.
Avatar of gilpili

ASKER

I actually found a better solution than to set up multiple virtual PCs -- these were mainly there to test other instances of IE, but I found an IE tester that works well for what I need.

http://www.my-debugbar.com/wiki/IETester/HomePage.

I have kind of a complicated set up, so this is simpler all around.
Gil
One more example of why it's good to include as much detail as possible in your question ==> I would have suggested IE Tester in my first comment if you'd described what you were actually trying to do.   It's a much better solution for checking multiple versions than using a dedicated VM just for each version of IE.
ASKER CERTIFIED SOLUTION
Avatar of ee_auto
ee_auto

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial