Networking – How to put the WAMP server online to access the localhost projects through Internet

localhostrouterwireless-networking

I would like to put my WAMP server online so that my localhost projects could be accessed through Internet. I tried and followed various tutorials on the web but nothing worked for me. I also went through with How to put online your WampServer but it also didn't work for me. I have already done "Put Online" in WAMP tray icon. I am running Windows 7 SP 1 Ultimate. I don't have any wireless router.

I am accessing Internet using hotspot of my smartphone. I remember when I had have Windows XP SP3 and old version of WAMP (I think WAMP5 1.7.4) then it was very easy to put server online. I used to get my IP address. Put server online. And then could access my localhost through Internet by using the same IP. There is nothing to deal with port forwarding thing.

I guess do I need to do something with port forwarding. But as per my condition (Win7, WAMP 2.5, Mobile Intenet, No rounter), what settings or configuration I need to do to access localhost through Internet? Can anyone explain in simple words and could provide me working solution? Thanks.

Best Answer

I'm assuming the phone is creating a LAN when you say you are creating an hotspot with it, so you do have a router it's your phone.

In simple words you need to do two things.

  1. make the web service accessible from your LAN You can check this by using another device connected to the hotspot, and trying to access

<private IP address of server>:<port used by the server>,

ex 192.168.1.3:8080

  1. check your hotspot is redirecting the traffic from "the outside" to your local server. This is the tricky part, it's going to depend on your mobile phone etc

If using a android phone mabe check this out: link to google play

Then check from another device connected to the internet:

<public IP address>:<Public Port configured to be forwarded>,

Related Question