Page 1 of 1

XAMPP + TOMCAT webapp can't be accessed remotely.

PostPosted: 24. June 2011 17:56
by blazzer
Hi,

I installed XAMPP and also TOMCAT 7.011 successfully on my DESKTOP PC. I developed a site in JSP. I put it in CATALINA_HOME/webapps/site folder. It works like a charm. :D

But I am unable to access that site in another computer in the LAN, say my LAPTOP. :(

I tried this from my LAPTOP

1) <IP of DESKTOP>:8080/site
its gives 404 error

2) just <IP of DESKTOP>
XAMPP's "New Security Policy Concept" Error

3)to be sure I disabled all the FIREWALLS (comodo on desktop, Zonealaram on laptop)

4)I enabled port forwarding in my router.

Please tell me how to access the site I developed on my DESKTOP from my LAPTOP.
I do not intend (and would not like) to be able to configure XAMPP or TOMCAT from my laptop. It would suffice if only the site from my desktop can be accessed from my LAPTOP.

PS: My DESKTOP and LAPTOP are connected by ASUS RT-G32.

Re: XAMPP + TOMCAT webapp can't be accessed remotely.

PostPosted: 25. June 2011 01:13
by Sharley
blazzer wrote:I installed XAMPP and also TOMCAT 7.011 successfully
Which version of XAMPP is this?

blazzer wrote:I tried this from my LAPTOP

1) <IP of DESKTOP>:8080/site
its gives 404 error
Read the \xampp\apache\logs\error.log file for clues.

blazzer wrote:2) just <IP of DESKTOP>
XAMPP's "New Security Policy Concept" Error
\xampp\apache\conf\extra\httpd-xampp.conf file contains this Security Concept and depending on the XAMPP version you will have to add your LAN IP range in the form
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from 127.0.0.0/8
Allow from 10.0.0.0/8
Allow from 172.16.0.0/12
Allow from 192.168.0.0/16

ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
You only need one of the lines in red at this stage and it should be the line that contains your LAN IP range or you could simply leave all lines in red intact.
Save the file after editing and restart Apache then try and access from the laptop using your http://DTIP:8080 for Tomcat and simply your http://DTIP for the XAMPP Welcome Page found in your Desktop normally by typing http://localhost in your browser.

If you have allowed access through your firewalls and ZA then you can now enable them again.

See how the above pans out and get back if you are still having issues.

Good luck. :)