XAMPP + TOMCAT webapp can't be accessed remotely.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

XAMPP + TOMCAT webapp can't be accessed remotely.

Postby blazzer » 24. June 2011 17:56

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.
blazzer
 
Posts: 1
Joined: 24. June 2011 17:37
XAMPP version: 1.8.0
Operating System: Manjaro Linux

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

Postby Sharley » 25. June 2011 01:13

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. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 100 guests