XAMPP 1.7.3 on Dynamic IP Address

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

XAMPP 1.7.3 on Dynamic IP Address

Postby vincentrich » 17. April 2010 01:17

Hi everyone,

I am trying to allow people to access my XAMPP Apache server from the internet. I have been trying this for many hours and still no luck. This isn't my first time attempting to do this and the first time I did it, it didn't work too.

Here's what I have done so far:

1. My laptop has a static IP address from my router.
2. My router is directly connected to my ISP's modem.
3. My router has been set to forward port 8106 to my laptop's LAN IP.
4. My Windows Firewall has been set to forward 8106 both on UDP and TCP.
5. I have disabled remote control on my Windows.
6. I do not have any 3rd party firewall installed.
7. I have both DynDNS and No-IP installed.
8. My ports do not seem to be open... I have tested from this site: http://www.canyouseeme.org/
9. I have done some of the fixes as described on: http://www.pcwintech.com/common-problem ... forwarding

The problem right now is my port does not seem to be open. I tried port forwarding on BitComet and it works OK as long as I launch BitComet.

This is the code of the site I wish to share on the internet....

Code: Select all
#CONTENT SITE TEMPLATE
NameVirtualHost 192.168.0.2:8106
Listen 192.168.0.2:8106

<VirtualHost 192.168.0.2:8106>
   ServerAdmin your@email.com
   ServerName 192.168.0.2:8106
   DocumentRoot "C:/Projects/content sites/content sites - template"   
   ErrorLog logs/content-error.log
   CustomLog logs/content-custom.log common
   <Directory "C:/Projects/content sites/content sites - template">
      Options Indexes FollowSymLinks Includes ExecCGI
      Order allow,deny
      Allow from all
      AllowOverride all
   </Directory>
</VirtualHost>


I read somewhere on this forum that if you remove the following code from httpd-xampp.conf, internet sharing would work... Doesn't work for me...

Code: Select all
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|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 idea what is causing my port to not forward? I have tried turning off Windows Firewall.... Does not make any difference.
I'm a WordPress Designer. Check out my WordPress Sales Page if you're interested.
vincentrich
 
Posts: 45
Joined: 19. January 2005 10:05
Location: Singapore

Re: XAMPP 1.7.3 on Dynamic IP Address

Postby JonB » 17. April 2010 16:23

I will only comment on two parts of this:

Mostly about the latter:
I read somewhere on this forum that if you remove the following code from httpd-xampp.conf, internet sharing would work... Doesn't work for me...


Look at the 'locations' -- they are the sensitive areas of XAMPP. What this code does is secure them only.

Remember that by default XAMPP, serves ./xampp/xampp/index.php

So - if you wish to serve, say index.html in your root folder, you will need to fix the main httpd.conf.

the directive to be fixed is this:

Code: Select all
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html index.php index.pl index.cgi index.asp index.shtml index.htm \
                   default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
                   home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>


the above is my 'fixed' directive, this means Apache will attempt to serve index.html

You'll need to make those fixes to keep XAMPP from tring to serve index.php in your Document Root (htdocs)

The purpose of the other directive (in httpd-xampp.conf) is to prevent 'alien' IP's from accessing a default XAMPP installs' vital parts.
...
Don't forget to restart Apache if you make changes to .conf files.
LOL

The summary of this is:
To use XAMPP as a server on public networks, and not spill its guts, you need to make these changes (at minimum), also a good idea to cruise to the Security section, runnning XAMPP locally, and grok all the fixes you need,

As for your BIG problem, I suggest you get it working on port 80 first.

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP 1.7.3 on Dynamic IP Address

Postby jeeva » 28. April 2010 08:32

I got the ip address here http://www.whoisxy.com/ping.aspx at free of cost...First we give the domain name and then get the ip address...
jeeva
 
Posts: 2
Joined: 26. April 2010 11:24


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 161 guests