good day! i have this problem in wampserver2.0. i already learned how to effectively put my localhost online. it is accessible over the internet in other pc's by typing my WAN ip. i just discovered that one of my friend cannot access my website while others can access it. how was that? replies are appreciated!

Dani AI

Generated

Because some remote people can reach the WAMP site by your WAN IP while others cannot, the problem is much more likely to be a client-side or network-routing issue than Apache itself. As suggested, the exact browser error (timeout vs connection refused vs 404) is a crucial clue, and ’s point about whether the failing machines are on the same LAN is also important — many consumer routers do not handle “hairpin” (NAT loopback) the way you’d expect.

Quick, ordered diagnostics (use these before changing server configs):

  • From a failing client try (replace <WAN_IP> with the numeric IP):

    curl -I http://<WAN_IP>/
    telnet <WAN_IP> 80
    tracert <WAN_IP>   (Windows) / traceroute <WAN_IP> (Linux/macOS)
  • On the WAMP host check that Apache is listening on all interfaces (not only 127.0.0.1) and that Windows firewall/router forwarding is correct:

    netstat -an | find ":80"      (Windows)
    ss -ltnp | grep :80           (Linux)

    Confirm your router’s port-forward forwards external port 80 to the WAMP machine’s LAN IP.

NAT loopback (hairpin) note and simple workaround: many routers won’t let you use the public/WAN IP from inside the same LAN; that would make you (or other LAN clients) fail while remote people succeed. When testing from inside your network, use the server’s LAN IP (e.g. http://192.168.1.10/) or add a hosts-file entry on local machines:

# edit C:\Windows\System32\drivers\etc\hosts  (Windows) or /etc/hosts (Unix)
192.168.1.10   mysite.local

Other checks and tips: verify the client isn’t using a proxy, try another browser/device (or a phone on cellular data) to rule out ISP or client firewall blocks, and remember some residential ISPs block inbound port 80 — testing from a cellular connection or using a simple online port-check tool will show whether port 80 is reachable from the Internet. Useful diagnostics to include in replies are the exact browser error text, traceroute output and the results of the curl/telnet attempts.

Recommended Answers

All 6 Replies

Would be nice to know what type of error appears on your friend's computer. Since ISP DNS is not involved, the problem seems more like wrong ip address.

my friend only says she can't load my page. its a page loading error, something like that. is it not normal in wamp?

if that's an http server, one assumes you mean load a page in a browser.

if several other ppl can browse your site, one assumes that it's a local problem with "her" pc.

as martin5211 posted, could you give the error msg she's getting, like 404 or whatever...

very sorry for the late reply. i just discovered that i cannot also view my other friend's wamp site. local problem? im interested to know how to fix that 'local problem'. i think what's happening on 'her' pc is happening now to me. thanks guys please help me.

ok, let's clear up some stuff.
by wan address, do you mean public ip address
(if you don't know, google 'public and private ip address')

would you be willing to post the ip address so one of us can see what happens (error messages, etc.)

WAN ip i mean the ip that you'll see in whatismyip.com
my WAN ip is not static so i don't think it makes sense posting that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.