(Transferred from the wiki by Peter)
The Linksys Cable/DSL router has unique features such as port forwarding etc. To allow for incoming internet users to view your page some steps need to happen. This PET assumes that you have configured Apache to listen to port 80.
- First Disable DHCP (you may think you need it but you don't)
- Assign your computers a static IP in the range of your router normally 192.168.1.XXX
- Ensure your Linux Computer Network Card (NIC) is set to be a static IP address. (Linuxconf).
- Access the Linksys Router setup page 192.168.1.1 and go to the advance tab Port Forwarding
- Ensure you have port 80 setup pointing to the Apache Box's IP address
- Click Setup tab and make sure you have your ISP information correct including dns info.
- Click Status and disconnect and reconnect the service.
- Reset your modem (not the router)
- Go for it, it should be working now.
Hope this helps those who pull out their hair. Rastar
Side note by gehan gehale
Many routers have a problem routing traffic back if your using the outside address from inside the network. For example if you have:
- mysite.com dns pointing to your linksys's external IP( 184.108.40.206 )
- Port forwarding 80 to your web servers internal IP ( 192.168.1.2 )
- Your laptop ( 192.168.1.3 ) trying to open the browser to mysite.com (you get a 404 error)
- Add hosts entry on laptop to route mysite.com to 192.168.1.2