LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   cannot view web page from local lan (https://www.linuxquestions.org/questions/linux-networking-3/cannot-view-web-page-from-local-lan-62170/)

Tigger 05-27-2003 07:09 PM

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

:confused: :( :scratch:

Finlay 05-28-2003 12:29 PM

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.

david_ross 05-28-2003 12:38 PM

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.

swift220 05-29-2003 09:31 AM

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

Tigger 05-31-2003 01:03 AM

thanks swift220. This worked!!!


All times are GMT -5. The time now is 02:30 AM.