7

I'm not quite sure what I'm doing wrong, because from what I've read, this should all be working.

What I've done:

  1. Forwarded ports 80, 8080, and 443.
  2. Changed the ServerName localhost:80 line in \apache\conf\httpd.conf to ServerName myip:80.
  3. Registered at dyndns.com, and have been using their update client to link my IP to the DNS thingy.
  4. Made sure xampp was using port 80, and started apache and MySql.

And...nothing. What did I miss? =/.

Update: Disabled Windows Firewall and my router's firewall. Double-checked the port-forwarding, and it is set up correctly. Still nothing.

Update: I can view everything fine (spull.dyndns.org, 192.168.0.11, and the server's local IP) from inside the network, but not outside. I still can't view my WAN IP from inside the network, as well. The DDNS function on my router updates with a local IP instead of my WAN IP, still, also. Any suggestions?

Also, I'm using Ubuntu now, if that makes any difference.

Andrew
  • 143

6 Answers6

3
ServerName myip:80.

You should write your DynDNS subdomain name instead of your IP :) Also, in DynDNS you must manually specify the IP address of the host you're forwarding your ports to: DynDNS will only determine your personal IP.

kolypto
  • 3,121
1

Things to check:

  • You're binding to localhost not a public facing ip. Bind to 0.0.0.0 (all interfaces).
  • Make sure you're listening. Edit the Listen line in ports.conf to resemble Listen [public ip]:80
  • Ensure you're using the correct ip, use WhatIsMyIp.com.
  • Ensure you are accessible. Ping your computer through the public IP.
Josh K
  • 12,990
1

Hmm... Are you sure you've forwarded the ports to the proper IP address? If you're on a LAN behind a router, you'll have a public IP which is assigned to the router's WAN port--that's what the DNS should point to. Then you'll have a LAN IP for the server behind the router. These IPs are usually distributed dynamically by the router and begin with 192.168.x.x. If your router supports it, you can do Static DHCP, which assigns a predetermined LAN IP to your server based on its MAC ID, or instead configure TCP/IP manually on your server by copy/pasting the subnet mask, DNS servers, and gateway IP from what's normally assigned by your router, and then choosing an IP address just outside of the range of what your router will assign. For example, my router assigns 192.168.1.[100-254], so I'll assign my server 192.168.1.42.

Oh, and make sure you're not running a firewall on your router or server.

You've mentioned it works locally, but does it also work on your local subnet? i.e. can you access the web server from another computer behind the router on your LAN, using your LAN IP? That'll help narrow down where the issue is.

NReilingh
  • 5,883
1

I don't know if it will work but try UniServer or something that has a produation mode so that it works easily. I have tried UniServer in Prodution mode and it works live on the internet.

tombull89
  • 6,699
Benny
  • 644
1

Who is your ISP?

Have you checked your DDNS account to make sure your PC updater client is working correctly? Let your router do the DDNS update if it is DDNS capable (a router that runs DD-WRT firmware is capable of this, and what I would recommend).

You don't need to change ServerName localhost:80, change it back.

For basic hosting you only need port 80, if you want to use Filezilla with XAMPP forward port 21 as well.

Beyond that XAMPP is pretty good (in my experience) at alerting you from its user interface if something is amiss.

ubiquibacon
  • 8,244
  • 3
  • 31
  • 37
0

If you are on Windows, check if Windows firewall, or another firewall is blocking those ports, and if so, add the exceptions (you can do it in firewall properties). Also check if those ports are already being used by other applications. ( IIS, Skype, other Mysql instance, etc)

Alternatively there's also a wizzard like installer, (but is a slightly different stack) WAMPStack, from Bitnami.(or the other platform versions)

S.gfx
  • 1,698
  • 11
  • 14