If it works on LAN but not on WAN, then you may need port forwarding.
This is common if you have a cable modem or something that doubles as a hardware firewall.
If so, this is how I would fix it on mine, and it should be similar to yours:
First, press WINKEY then type
cmd then in the Command Prompt, type
ipconfig /all. Record the IPv4 Address for your computer. It will be like
192.168.0.10 for example.
IPv4 Address. . . . . . . . . . . : 192.168.0.10(Preferred)
That is your computer's address on your LAN. Let's say your WAN IP is like
188.8.131.52 and your Wampserver is setup on port
1337. You would expect it to work via
http://184.108.40.206:1337 but it doesn't.
Your goal now is to forward port 1337 in your firewall to
192.168.0.10:1337. This makes sense because imagine you had like 5 computers. How would your modem/router know which one to send traffic to?
- Open browser
- Go to http://192.168.0.1
- Login as admin
- Find port forwarding
- Enter your IP:
- Enter the port:
- Forward TCP there (or UDP as well), but just TCP should do it (dont quote me on that)
- Make sure it saved, sometimes those admin areas troll you
- Try to connect again via your WAN IP and port.