LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-27-2003, 08:09 PM   #1
Tigger
Member
 
Registered: May 2003
Posts: 168

Rep: Reputation: 30
cannot view web page from local lan


Hi

i am running red hat 8 and am hosting my own web page using Apache web server and have an adsl connection using a dynalink modem/router.

I can view the page from the internet but cannot view it locally from a windows 2000 workstation.

I have a feeling that it could be related to DNS but do not know exactly what i have done wrong. When i try to view the page locally i get the username and password for the adsl router come up.

On my windows 2000 workstation i have set the primary dns server to be the ip address of the router and secondary dns server to be the ip address of the ISP.

Is there anything else i can check for or have not configured properly? Could it be my iptables configuration? I have openened up ports 80 and 25 on the router and in my iptables. Iptables i have added the following:
iptables -A INPUT -p tcp --dport 80 -j ACCEPT and have done the same for port 25.

Any ideas anyone?

thanks

 
Old 05-28-2003, 01:29 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
on the internal LAN you have to type in the internal IP address of the webserver or its machine name, if you have netbios going.

If you type in your external IP address it won't work.
 
Old 05-28-2003, 01:38 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
If you want to use the external ip you will need local loopback enabled on the router (if the function is available).

If you are using dns you can override the dns ip by using the hosts file on all the local clients.
 
Old 05-29-2003, 10:31 AM   #4
swift220
LQ Newbie
 
Registered: May 2003
Posts: 4

Rep: Reputation: 0
you can fix this problem by adding and entry to your hosts file somewhere under your system32 directory somthing like

www.mywebpage.com 192.168.1.150
mywebpage.com 192.168.1.150

you will need to add this entery to all of your local windows machines inside you network.... its kindof like a poor mans DNS solution otherwise you can setup a DNS server
 
Old 05-31-2003, 02:03 AM   #5
Tigger
Member
 
Registered: May 2003
Posts: 168

Original Poster
Rep: Reputation: 30
thanks swift220. This worked!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 11:30 PM
cant view a web page master General 5 08-19-2004 11:46 AM
Unable to view web page from remote machine kiddy Linux - Networking 2 04-14-2004 10:06 PM
web server, unable to view test page gigya Linux - Software 1 01-30-2004 11:34 AM
View Linux Web-Page on Windows I.E mhatreonline Linux - Networking 5 05-13-2003 05:33 AM


All times are GMT -5. The time now is 04:03 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration