LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 05-01-2004, 10:30 PM   #1
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Rep: Reputation: 15
Router help needed for apache (with pics)


This is a windows computer, but I believe that you guys can help me:

So I'm trying to run a webserver off of my computer. I'm running Windows XP, Apache2, have a SBC DSL connection, WRT54G Linksys Router, and a 2wire 1000sw DSL modem.

When I installed Apache I configured it for "localhost" and installed it to "c:/apache2" It is installed as a service. I can get the default screen at http://localhost but when I try to access it from my ip at http://*.30.23.214/ it does not show up. I can also get it at the internal network ip (192.168.1.10) of my computer and 172.16.1.34 (wtf is that?)

When I connect my computer directly to the modem, I can acces at my ip (http://*.30.23.214/)

I've tried different configurations with my router, but no avail. Here are some screenshots.
http://www.johnp.anyxhost.com/images/ip.jpg
http://www.johnp.anyxhost.com/images/forward.jpg
http://www.johnp.anyxhost.com/images/status.jpg
http://www.johnp.anyxhost.com/images/localhost.jpg
http://www.johnp.anyxhost.com/images/firewall.jpg
http://www.johnp.anyxhost.com/images/17216.jpg
http://www.johnp.anyxhost.com/images/19210.jpg
 
Old 05-02-2004, 02:00 AM   #2
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
I think this is a limitation of the router. I have the same problem with my D-Link router. Had the same problem with a Netgear. I am forwarding ports to hosts on the private subnet. If I try to browse to the internet IP, it will not connect, but connecting to the private IP works. if you are coming in from the WAN port on the router (as you are if you are connected to the modem), it works, but if you are coming in from the private side of the router, it cannot port forward back to the same private network. If you try from a different computer on the Internet, will it connect? I'm guesing that it will work.
 
Old 05-02-2004, 08:11 AM   #3
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
" 172.16.1.34 (wtf is that?)"

That is the IP that your router is shooting to you via DHCP. I am running a static IP too (not for a webserver, though) and I have turned off DHCP on the router. Try that, for starters.

shubb is right, I believe. Its not a router shortcoming. Its a NAT weakness. You can't access a public webserver from within the network the same way. I'm not sure if you'll be able to change that. So, if you're plannig on testing the "view" from outside your little lan, you may have to make friends with someone who is willing to help you test that. Good luck. I hope we're proved wrong, though.
 
Old 05-02-2004, 08:35 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Moved: This thread is more suitable in General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 05-02-2004, 04:56 PM   #5
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Original Poster
Rep: Reputation: 15
It will not work on from any computer.

Just try now http://209.30.23.214/
 
Old 05-02-2004, 04:58 PM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Jeez! That was a quick "Could not connect" message! Is that what you wanted?
 
Old 05-02-2004, 05:00 PM   #7
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by vectordrake
Jeez! That was a quick "Could not connect" message! Is that what you wanted?
No way, I'd like my server to work!

I've got Apache running and my router set up like those pics (with DHCP disabled too)
 
Old 05-02-2004, 05:05 PM   #8
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by vectordrake
" 172.16.1.34 (wtf is that?)"

That is the IP that your router is shooting to you via DHCP. I am running a static IP too (not for a webserver, though)
It is? Explain that to me a little more. Isn't it 192.168.1.10?
 
Old 05-02-2004, 05:07 PM   #9
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
192.168.x.x, 172.x.x.x, and 10.x.x.x are the "private" IP ranges that we can use on a network. These aren't used on the internet. That way we don't run out of IPs so quickly, as we can all use the same internal ones if we want.
 
Old 05-02-2004, 05:11 PM   #10
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Original Poster
Rep: Reputation: 15
I understand, but Whats the difference between the 172.16.1.34 and 192.168.1.10 on my network?
 
Old 05-02-2004, 05:12 PM   #11
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
According to the pics, your gateway is 172.16.0.1 and you have set your puter to 192.168.1.10 (same as mine). Change one to match the other. My Linksys befsr41 has an IP of 192.168.1.1, for example.
 
Old 05-02-2004, 05:14 PM   #12
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by vectordrake
According to the pics, your gateway is 172.16.0.1 and you have set your puter to 192.168.1.10 (same as mine). Change one to match the other. My Linksys befsr41 has an IP of 192.168.1.1, for example.
172.16.0.1 Takes me to the config screen for my modem.
192.168.1.1 Takes me to the config screen for my router.
 
Old 05-02-2004, 05:14 PM   #13
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
172.16.1.34 is the dymanic IP assigned by the DHCP server on your router. If you reboot your puter, you won't have that IP any more. You have to have a static IP anyways when you have a webserver behind NAT or you won't be able to guarantee any uptime for the server. You have the right idea, but the IPs aren't meshing yet.
 
Old 05-02-2004, 05:15 PM   #14
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
I don't know why that would be
 
Old 05-02-2004, 05:19 PM   #15
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by vectordrake
172.16.1.34 is the dymanic IP assigned by the DHCP server on your router. If you reboot your puter, you won't have that IP any more. You have to have a static IP anyways when you have a webserver behind NAT or you won't be able to guarantee any uptime for the server. You have the right idea, but the IPs aren't meshing yet.
I'm taking 192.168.1.10 from my router which is located at 192.168.1.1 which is being assigned 172.16.1.34 by my modem at 172.16.0.1 which is being served 209.30.23.214 by SBC

Overall I now believe that my modem is acting as a router and screwing me over because its so damn confusing.
 
  


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
building a router with RH9 or slackware help needed dark_templar Linux - Networking 8 07-27-2004 05:31 AM
suggestions needed: DSL router/modem for Linux reggie Linux - Networking 1 11-03-2003 01:17 PM
Apache and Frontpage, no apache mods needed cli_man Linux - General 0 09-27-2003 09:31 AM
DNS issues going through router to internet - newbie help needed please dgknight Linux - Networking 15 08-21-2003 04:49 AM
Opinions needed for router/firewall distribution monodax Linux - Distributions 5 03-08-2003 04:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:23 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