LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-14-2004, 03:42 PM   #1
hcubed
LQ Newbie
 
Registered: Sep 2003
Posts: 9

Rep: Reputation: 0
Can't access webserver IN network (slackware/apache)


You guys did great on the first question, but now I've got another.

I have a webserver at dumbbox.dyndns.org and it works fine from anywhere outside my two computer network (one windows pc, one slackware webserver). Actually it works fine on all computers except the PC. If I type in the above address on the webserver, it works fine, but on the windows box it won't connect. I have to type in the internal IP of the webserver to access it. Although it's not a big deal, it would be nice for testing purposes to have it work. Oh yeah, The dyndns actually points to the IP of the router.

I also have an SMB server running on the webserver so I can access some pictures from the Windows box through the webserver (and display them on the webpage). All other comps have no problem seeing these pictures, except the Windows box can't disaplay them.

Any ideas? Thanks in advance.
 
Old 04-14-2004, 03:51 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You will need to override the DNS entry in each of your LAN PCs with a hosts entry like:
192.168.1.10 dumbbox.dyndns.org

Assuming 192.168.1.10 is your server's LAN ip.
 
Old 04-14-2004, 03:57 PM   #3
hcubed
LQ Newbie
 
Registered: Sep 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Ok, that makes sense, but I'm not sure how I go about doing that. Would I alter the httpd.conf file? Thanks.
 
Old 04-14-2004, 04:05 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You just need to add an entry to your hosts file as I described above.
 
Old 04-14-2004, 04:12 PM   #5
hcubed
LQ Newbie
 
Registered: Sep 2003
Posts: 9

Original Poster
Rep: Reputation: 0
I get it now. Thanks so much, it works!
 
Old 04-14-2004, 04:20 PM   #6
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
You would add the line above in the /etc/hosts file.

My guess why this is a problem would be that your linux router blocks requests to the WAN interface (internet IP) for clients coming from your LAN.
I can access my linux router with both internal and external IP address as well as global DNS address.
This problem is probably in the iptables rules.

Am I right, any one?
 
  


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
howto access webserver from internal network? Falafel Linux - Networking 6 11-01-2005 02:18 PM
problem with apache/slackware webserver mole_13 Linux - Networking 3 05-23-2005 01:49 AM
Cannot access Apache webserver from internal network, but I can from outside... cj_thomas Linux - Networking 8 10-18-2004 01:18 AM
DSL Webserver and Network Trouble (slackware) hcubed Linux - Networking 4 04-12-2004 09:55 PM
Apache Webserver Help on Slackware 9.1 Corallis Linux - Newbie 1 01-28-2004 04:40 PM


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

Main Menu
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