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 09-11-2005, 04:56 AM   #1
Orkie
Member
 
Registered: Mar 2005
Distribution: Breezy Badger
Posts: 248

Rep: Reputation: 30
Can't access my web server but other people can


I have finally gotten a webserver running with port 80 forwarded to the correct location (10.0.0.250 on my network). A very strange thing is going on though. I can't access the webserver through our IP address yet other people can. When I try to view it through the Internet rather than the LAN, I get my router's web frontend pop up but nobody outside of our LAN does.

The solution is to just view it through 10.0.0.250 on the network but this then causes problems whenever you click on a link as I can't link via the network and allow other people to view it and I can't link via the web as then I won't be able to view it. I can go through a proxy and get onto it fine but I don't want to be doing that forever.

Does anybody know a solution to this other than changing the port that the router operates on. If I were to change that and it were to get messed up, I would be unable to get back into it so I don't want to alter that if there is another solution.

I'm running Apache 2.x (whatever comes with Debian Sarge) on Debian Sarge (you never would've guessed ). It has mod_php and mod_perl installed if that information is useful.

EDIT: Forgot to mention that Apache is listening on both port 80 and port 8080. Both ports are forwarded. People outside the network can access it on both ports but even though my server's frontend only listens on port 80, I still can't access apache along port 8080 -- Firefox reports 'connection refused'

Last edited by Orkie; 09-11-2005 at 05:54 AM.
 
Old 09-11-2005, 09:43 AM   #2
bigtpumped
Member
 
Registered: May 2005
Distribution: gentoo
Posts: 39

Rep: Reputation: 15
Rather than entering the IP adress in your web browser, type
http://localhost:whatever_port_it_listens_on

since i have my apache listening in 5151, i type http://localhost:5151 to see my webserver from my computer.

That should allow you to view any webserver running on the computer you are at as though you were on the website remotely. I'm also pretty sure that doing this with 8080 will work as well.

Last edited by bigtpumped; 09-11-2005 at 09:56 AM.
 
Old 09-11-2005, 01:42 PM   #3
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
On some routers, the port forward only works from the the internet side, not from the LAN side. I used to have such a router. I'm now running a Linksys WRT54G and do not have this problem.
 
Old 09-13-2005, 01:59 PM   #4
Orkie
Member
 
Registered: Mar 2005
Distribution: Breezy Badger
Posts: 248

Original Poster
Rep: Reputation: 30
Yes, that was my problem Snowbat (was because I have found a solution to it now). It isn't the best of solutions but I ended up just adding my domain to the hosts file on every machine
I also found mod_rewrite which can change links on the fly if you are accessing it from the network but it was a lot more hastle than just using hosts.

Thanks anyway
 
Old 09-13-2005, 02:35 PM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Quote:
Originally posted by Snowbat
On some routers, the port forward only works from the the internet side, not from the LAN side. I used to have such a router. I'm now running a Linksys WRT54G and do not have this problem.
Yup, definitely true. I have a Netgear MR814 and it does not work from the LAN side, but works fine with a Linksys router. Oh yeah, and this Netgear router sucks because it doesn't do VPN. Screw you Netgear!
 
  


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
[IPTABLES] open ext access to web server on GW server kozaki Linux - Networking 3 08-27-2005 05:11 PM
Web Server denying access. cjkeeme Linux - Networking 4 05-15-2005 04:38 PM
Can access web from clients but not server bnemesis Linux - Networking 2 10-03-2004 09:47 PM
cannot access web server from LAN puding Linux - Newbie 11 09-07-2004 12:06 AM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

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

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