LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-21-2005, 02:05 PM   #1
linmith
Member
 
Registered: Oct 2004
Location: Scotland
Distribution: Ubuntu
Posts: 105

Rep: Reputation: 15
Strange Dyndns problem


Hi. I decided to set up a web server on my Slackware 10.1 desktop machine just for the learning experience. I downloaded and installed apache then moved the files for my test site to /var/www/htdocs. Then I stated up the http daemon. Now when I visit http://127.0.0.1 in my web browser it displays my site just like it should, everything seemed to be working perfectly.

So then I signed up for a dyndns.org account, created a Dynamic DNS address and assinged it to my current IP address. But when I point my browser to http://mysite.dyndns.org, instead of my site I am presented with my router's configuration page! My router is a BT Voyager 205 if that's any help. Does anyone have an idea as to why this would happen and how to fix it?
 
Old 05-21-2005, 02:35 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
You have to forward port 80 on the router to port 80 on your server's lan card mac address or ip (if you are using port 80 on your server setup).
 
Old 05-21-2005, 03:10 PM   #3
infinity42
Member
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 142

Rep: Reputation: 16
What computer are you browsing from?
If you browse from the computer which is running the webserver:
Make sure that the hosts file is set up correctly,
Code:
...
127.0.0.1               localhost.localdomain localhost mysite.dyndns.org
...
Make sure that your dyndns name is on the same line as 127.0.0.1
If this happens when browsing from another computer (OUTSIDE the router i.e. not on your LAN) an idea might be to check if your router is forwarding port 80 to your computer. This is a bit of a stab in the dark, but it might work.

Hope this helps!
 
Old 05-21-2005, 04:34 PM   #4
linmith
Member
 
Registered: Oct 2004
Location: Scotland
Distribution: Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 15
Thanks for both of your replies.

Tuttle: I really don't know much about Linux networking, is port forwarding a router-specific thing, or is there a general "do this to forward port x" instrucion that works for all routers?

infinity42: 'hosts file'. Is that an Apache config file, or a Linux config file, and where would I find it?

Thanks again for the replies.
 
Old 05-21-2005, 04:53 PM   #5
infinity42
Member
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 142

Rep: Reputation: 16
The hosts file is a linux config file, and should be found at /etc/hosts (you will have to be root to edit it). If you don't know how to use vi it can be a pain to use - you could try nano instead. So something like:
Code:
#nano /etc/hosts
When in nano just navigate to the end of the line that starts '127.0.0.1' (use the arrow keys), put a space then 'mysite.dyndns.org' on then end. Press [Ctrl]-[O] to write the file, then [Ctrl]-[x] to exit. That should set up your hosts file.

Now, onto router config. The port forwarding is done by the router - and it differs hugely between routers. Try this page http://www.portforward.com/btvoyager...forwarding.htm
You need to forward port 80 to port 80 on your computer's IP

Good luck, Hope that helps.
 
Old 05-22-2005, 04:32 AM   #6
linmith
Member
 
Registered: Oct 2004
Location: Scotland
Distribution: Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 15
Thanks a lot, it's working perfectly now. I just needed to edit the hosts file and activate port forwarding like you said. Thanks again.
 
Old 05-22-2005, 04:37 AM   #7
infinity42
Member
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 142

Rep: Reputation: 16
Great, glad we could help. Have fun with apache.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DynDNS and Redhat 9 xviddivxoggmp3 Linux - Networking 1 10-19-2005 05:22 AM
DynDNS IP bastardchild Linux - Newbie 2 08-02-2005 08:55 PM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 05:16 PM
dyndns configure shin1 Linux - Networking 3 03-16-2003 06:41 AM
dyndns.org d3funct Linux - Networking 1 04-25-2002 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration