Tomcat server on Host

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Avril
Posts: 3
Joined: 1. Dec 2010, 16:13
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

Tomcat server on Host

Post by Avril »

Hello,

I've just installed Virtualbox with windows XP.
Now, I'm running a Tomcat server on my host that I would like to access through Virtualbox using IE.
The network connection is set to bridge, but when I go to the localhost:8080 I get the "404" page.

Is there something else I should configure?

Thanks
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Tomcat server on Host

Post by Perryg »

Avril wrote:Hello,
I've just installed Virtualbox with windows XP.
Now, I'm running a Tomcat server on my host that I would like to access through Virtualbox using IE.
The network connection is set to bridge, but when I go to the localhost:8080 I get the "404" page.
Is there something else I should configure?
Thanks
I assume you mean that the host has the server and you are trying to get to the server from the guest.
If this is the case the localhost and port will not work. You just use the IP address of the host. Port forwarding is a one way thing from the host to the guest not the other way around.
Now if you are talking about accessing the server on the host from the host then it will be a configuration problem of Tomcat or something like a firewall.
Avril
Posts: 3
Joined: 1. Dec 2010, 16:13
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

Re: Tomcat server on Host

Post by Avril »

Yeah, I want to access my host server via the virtualbox.
I just tried to access my webpage by using the hosts IP and now I get the not authorised page, so I'm getting there. But this was only working when I activated the websharing in OS X, so it's the default apache that's being accessed and not my Tomcat. It should be the Tomcat.

I don't have much experience (almost none) with Tomcat, some details could help me :)

Thanks!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Tomcat server on Host

Post by Perryg »

Avril,

You need to seek out help from tomcat http://tomcat.apache.org/ . This really falls outside the scope of VirtualBox.
Avril
Posts: 3
Joined: 1. Dec 2010, 16:13
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

Re: Tomcat server on Host

Post by Avril »

Can it be that it's a setting of the bridge connection? Do I need to make a bridge connection in the Windows XP to?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Tomcat server on Host

Post by Perryg »

You stated in you original post that you were using Bridged (which is advised) so the host and the guest should already be connected as Bridged. If you can ping the host from the guest and the guest from the host then it is not a VirtualBox networking issue.
Post Reply