I followed a lot of solutions I found, but it still doesn't work. I can access the server by port 80 inside my network, bui I can't on another one, just by another port (like 62, as I set).



Listen localhost:80
Listen *my_ip*:80
Listen *my_ip*:62


ServerName *a_free_DNS*:80


# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI 

    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    Options Indexes FollowSymLinks Includes ExecCGI

    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    AllowOverride All

    # Controls who can get stuff from this server.
    Require all granted


<VirtualHost *:80>
    ServerName *a_free_DNS*
    DocumentRoot C:/xampp/htdocs/home/


# New XAMPP security concept
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    #    Require local
    Order deny,allow
    Allow from localhost
    Allow from 192.168.0.*
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

I put here just what I thought is important and what was modified.

I'm using an Arris router. I set as following:

Virtual Servers:

Description     Inbound Port    Type    Private IP Address      Local Port
Server          20-81           TCP           20-81

Port Triggers

I tried

Description     Outbound Port   Type    Inbound Port
Server          80-80           TCP     62-62


Description     Outbound Port   Type    Inbound Port
Server          62-62           TCP     80-80


Description     Outbound Port   Type    Inbound Port
Server          20-81           TCP     20-81

and any.

I tried disable the router's firewall too. What do I do?


Try using port forwarding, instead of port triggering. Your web server is not making an initial connection which is what you need for port triggering. Also start by setting everything to one port instead of a range.

  • The router settings have no port forwarding option, just port triggering. Anyway, you was right about set one port instead of a range, it's working!!! xD Thanks Aug 6 '14 at 4:20
  • Isn't working anymore, and I didn't change anything. ='[ Aug 6 '14 at 19:40
  • When I try to enter using the adress of the free DNS, the adress, at the adress bar of the browser, is changed to my.adress/cgi-bin/status_cgi Aug 6 '14 at 19:42
  • Try using only the virtual server, with one port and no port triggering.
    – Glen
    Aug 8 '14 at 0:36
  • Nothing... '__' Aug 10 '14 at 0:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.