My Tweets
- Hilarious, Leo just mashed a car while parallel parking.. haha! #twit.tv 13 hours ago
- Just doing some work on accessibility while watching twit.tv/live Awesome new Ford cars, about to test drive an SHO and 2011 Mustang! 14 hours ago
- http://tweetphoto.com/34633697 Breakfast at the Wilsons. Bacon Egg and Cheese Biscuit. 2010/07/24
- Check out my newest blog entry, Reviewing the new Digg.com Version 4! http://www.geedew.com/2010/07/20/the-new-digg-v4-quick-review/ 2010/07/21
- RT @kmacke: BREAKING NEWS: LeBron James has announced he will be moving from Subversion to Git for source code control. 2010/07/09
jQuery MeetUps
Archives
Tags
Android api BugFix Bulletproof code convert css design desktop Development Flash Font-Face geedew HTML ibm information Internet introduction javascipt JavaScript jquery knowledge lamp lenovo linux Microsoft Office mysql Notify OpenOffice PDF PHP Plugin Programming projects Scribd space tablet ubuntu upgrading usability webdesign web development x61 Yahoo! Zeldman
Server Accessible Locally, Not from the Internet
You can learn something everyday it seems.
Yesterday, I had some issues that I hadn’t planned on ever occurring with my local development server. Basically, the issue was discovered when my server suddenly did not have ANY access from the internet. Now, it DID have access to the internet, oddly enough, and I could reach it via hostname through my local network. The first issue I figured it would have been was a router problem. Namely port forwarding was getting messed up. My server is set statically on my network, so the port forwarding should be fine, and Remote Desktop to my XP machine works fine from the outside world. So the router is NOT the issue. Next step was DNS. Maybe my dns is messed up? I checked out my /etc/resolv.conf
I blocked out the ### because this is uneeded information about my ISP. Normally you want your name servers to be a nameserver, or your access to a name server. The first shows my router, from the inner network, which is what can be here. This explains why my hostname works via my network. But it is not the solution to my issue. So I dugg a bit deeper. What was that I said earlier? Ah yes, my server has a STATIC ip. Which means I should have a static route.
OK! There is my issue! My static route is pointing by default to 192.168.1.1 which is NOT my router (192.168.1.149). So a quick update to that and that should fix it!
I edited the line in bold. This was 192.168.1.1 and now it is 192.168.1.149
Now the networking is reset!
And Wa-Laa! All done. Now I can access my server via the internet from anywhere as it should be always.
Lesson learned I guess. Hope this helps some others stump issues they are having with static networking on linux.
Hot Topics