How to put my wamp server online ?

sanoop

Honorable
Nov 10, 2013
22
0
10,510
I setup up a wamp server for experimental purpose . I can view my site on localhost:5820 (192.168.*.5**: 5**0) .Whenever i put my public ip on browser its go to the router setup page .So i want to put my site on web , accessible for public . How can i do this . I have a dynamic ip address and i know little about no-ip , dydns services .
cmd.jpg
 
Solution
No changes are required on your httpd.config. You can setup the router with a DDNS service such as http://dnsdynamic.org/ and that will keep track of your external ip changes. The service will give you a domain name. Just use that name with your port # to access from outside your network. As for static on the LAN, if your router is 192.168.1.1 you can set your DHCP pool to start from 192.168.1.10 to 192.168.1.254 and assign your server anything 192.168.1.2 to 10. Or you can set Manually Assigned IP around the DHCP list.
On your router, setup a port forward of your local ip with is 192.168.1.5 to port 5820. You may also want to either Manually Assigned IP around the DHCP list or use a static address for your server.
 


Thanks for the quick replay . I just port forward 192.168.1.5 to port 5820 and i can access through my devices connected on the same network but can't connect a device from a diffrent network
 


Thanks for the info but no one can connect to this network and that is my problem ....
 
Well your ip 192.168.1.5 is a local address. For outside access you need your external IP. If you go to google and type "what is my IP" you will find your external ip. For example If your external ip is 68.45.234.129. You can access your server from outside as such, 68.45.234.129:5820 but as USAFret said this opens up vulnerabilities. I would not recommend giving anyone your external ip.
 


If the router is correctly configured, then accessing your public IP xx.xxx.xxx.xxx:5820 will talk directly to your WAMP server.
Your public IP is not 192.168.xxx.xxx
 


Do i need to change anything in appache httpd.conf file . I dont have a static ip since my ip changes in every new season , what can i o for this .
 

Do i need to change default apache httpd config
 
No changes are required on your httpd.config. You can setup the router with a DDNS service such as http://dnsdynamic.org/ and that will keep track of your external ip changes. The service will give you a domain name. Just use that name with your port # to access from outside your network. As for static on the LAN, if your router is 192.168.1.1 you can set your DHCP pool to start from 192.168.1.10 to 192.168.1.254 and assign your server anything 192.168.1.2 to 10. Or you can set Manually Assigned IP around the DHCP list.
 
Solution


Got the answer . Thanks :)