Problems accessing XAMPP from remote PC (XP) 1.7.7 [SOLVED]

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

Problems accessing XAMPP from remote PC (XP) 1.7.7 [SOLVED]

Postby cdelorm » 10. December 2011 01:35

Happy Holidays to all!

I am needing some advice regarding access XAMPP from a remote computer via a LAN. I have followed the wonderful input thus far and all seemed fine...until now. YIKES!

When I log into XAMPP and run Apache and MySQL, I can access localhost from the computer with XMAPP installed. I can access it via localhost or the address (xxx.x.x.x). I can access it without issue when typing either directly into the address bar. I have noticed that when I type in "https://" first, there is a security warning message (I believe about an untrusted certificate). I am still able to access XAMPP from the local computer though.

Now...when I try to access XAMPP from another computer, I run into problems. I get the following screen message - "unable to connect". I have tried to connect using "https://localhost" and "https://xxx.x.x.x".

I have modified the httpd-xampp.conf file as outlined below, per Sharley's recommendation when I originally asked for help accessing xampp remotely.

# New XAMPP security concept
#

# Close XAMPP security section here
<LocationMatch "^/(?i:(?:security))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

Any thoughts as to what might be causing the issue with accessing xampp from a remote computer? I think it might have something to do with the "https" notice I am getting when I try to log in that way on the local computer...not sure though.

Thank you in advance for your help, and please let me know if you need any other information from me. I had been able to access it before from a remote computer, and I thought I was validating access as I was updating and testing the settings, so I am a bit stumped. So close and yet so far!

~ Caprice
cdelorm
 
Posts: 11
Joined: 19. October 2011 04:14
Operating System: Windows XP

Re: Problems accessing XAMPP from remote computer

Postby Sharley » 10. December 2011 01:53

Hello Caprice,

Can you access the XAMPP computer from the LAN using the IP address of the XAMPP computer just using http:// ?

You can't access the computer that XAMPP is installed on from another computer on the lan using http://localhost or https://localhost as it is a local loopback address 127.0.0.1

However from a LAN PC you should be able to access using the IP address of the XAMPP computer providing you add the details to the HOSTS file of the LAN PC or use a setting in your LAN settings (DHCP/DNS perhaps) or router to redirect (not sure which as I don't have a LAN).

The certificate error is normal for a self signed server certificate which is how XAMPP is configured for localhost.

Apache is configured in the \apache\conf\extra\httpd-ssl.conf to listen on port 443 for any connection - local, WAN or LAN.

Make sure that your router or firewalls allows access to all the ports Apache and MySQL require.
A full list can be found here:
http://www.apachefriends.org/en/faq-xam ... html#xpsp2

Best wishes. :)
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

Re: Problems accessing XAMPP from remote computer

Postby cdelorm » 10. December 2011 02:48

OH MY GOSH - from the land of the obvious but I could not find my way to the land of the obvious universe! :roll:

Thank you so much for your reply. That was SO easy...yes, it works when I type in the IP address of the computer with XAMPP. It works with and without the http:// first.

Me thinks I spent too many hours researching new processes today and got myself a little confused (blush). My brain had it that, since I type localhost at the computer with XAMPP, I needed to do something similar on the other computer. Now that I think about your response...I get how that makes no sense. Note to self ... step away from the computer after hours of research before jumping into a task you are still learning! I have made a huge note in my files about this issue and have let out a huge sigh of relief and joy.

Have a great holiday Sharley! :wink:

Caprice
cdelorm
 
Posts: 11
Joined: 19. October 2011 04:14
Operating System: Windows XP

Re: Problems accessing XAMPP from remote computer

Postby Sharley » 10. December 2011 02:55

Thanks for the feedback Caprice and I am pleased that you can now move forward. 8)

Good luck and my very best wishes. :)
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 89 guests