Making My Static IP Work With My Web Server
I finally got my static IP address from my ISP, hooked up the modem, router, and computers but still I couldn’t access my website from the outside world. When I typed in the static IP address, it would just sit there and finally time out.
I tried it with the Ethernet cable coming from the modem to the router and then to my linux computer - that didn’t work. So, I tried it with my ethernet cable coming from the modem straight to the linux computer and then another ethernet cable from the modem to the router for all the other computers in the house. That didn’t work either. So, now what?
I talked to my friend, Dean, at work, who is the smartest person I know when it comes to networking. He even drew me pictures.
But, the one thing he told me that did the trick was how to set up my network interfaces file on the linux box that will let it know it’s static IP address. I’m sure I would have found that in a book or online if I’d looked long and hard enough, but it’s always nice to have a ‘Dean’ to save you from all the trouble.
So, I added my static IP address, gateway and subnet mask that was given to me by my ISP to the /etc/network/interfaces file and then ran ‘/etc/init.d/networking restart’ just like Dean told me. And, guess what? It works like a charm! I didn’t even have to get an extra networking card like Dean said I might. And I didn’t have to get another static IP address like Dean also said I might need. I just had to add the right stuff to the right file.
I installed SSH so that I can shell in from anywhere and now everything seems to be running well and I can now access my Linux box from anywhere with internet access.
Thanks Dean!

