logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Hardware & Networking View previous topic :: View next topic
Reply to topic   Topic: site is great on LAN, but not on internet
Author
knownotknow



Joined: 31 May 2006
Posts: 4
Location: Montana, USA

PostPosted: Fri 02 Jun '06 23:30    Post subject: site is great on LAN, but not on internet Reply with quote

Ok, here's a tough one I think. I am trying to set up a webserver at work. I have a domain that I have been using as a test... www.billingscompshop.com

I can see the page just fine on any computer on the network, but none outside of the network. We use a router on a cable connection, but i have demilitarized the computer running apache, have set the router's DHCP outside of the range the webserver is on and manually assigned an IP on the computer running apache to one that the router is capable of serving. I've done much more than this as you can imagine, as it seems that the router may be the cause of my troubles.

I have also contacted our ISP, and they do not block access to port 80. AND... apache is listening on port 80 as well as 8000.

Any ideas? Thanks.

am running:
apache2.2.2
no sql or php....yet
WIN2K sp4

errors=
server reset while page was loading (firefox)
cannot connect to server (MSIE6)

(errors are from the machine trying to access the server from internet)
Back to top
Aftek



Joined: 07 Jun 2006
Posts: 1

PostPosted: Wed 07 Jun '06 17:38    Post subject: Reply with quote

I had the same problem some time ago...

You need to first make sure port 80 isnt used anywhere else on
your network,

Then, even if you have DHCP router, you need to make sure
you have a fixed IP in your network
(well it simply would work without dhcp too,
but if you have a lot of computers on network,
you'll have to configure each computer ip one by one...
just to get yours fixed... without a lot of computer i
guess this isnt a real problem )

And finally, the router must have 'port forwarding' options...
(maybe some other name for a different brand... im using netgear)

I wasnt able to do this until i get this netgear router,
before that i was using an smc and it wasnt giving
any options to redirect port, or even get a fixed ip
with router still in dhcp.

the netgear router offers me to 'reserve an ip adress' to a
specific mac adress. so my computer is always 192.168.0.2
(in my case)

then under 'port forwarding' i only need to set up a specific port,
or a range of port to be redirected to me (at 192.168.0.2)

i do not know of any other way, though i know some 'old' routers
won't allow you to do such things...

i hope it helps Smile
Back to top
knownotknow



Joined: 31 May 2006
Posts: 4
Location: Montana, USA

PostPosted: Wed 23 Aug '06 18:03    Post subject: Reply with quote

Ok, I fixed it today. It was a small, newbie error, but I figured it out and decided I should post it here for others in my boat.

I was using the IP of the machine, set to static in the router on my network. This wasn't working because there are millions of routers out there using the same few IP's to serve, while the Router's presence on the internet uses an IP served by the connection provider.

So...
1) Set the DNS on your webhost/parking to point to your connections IP,

2)set your apache machine with a static IP from your DHCP server (router),

3)set apache to listen to your connections IP and on port 80 and,

4)set your router to allow access from outside on the static IP of your apache machine on port 80


If apache listens to the IP assigned by router to itself, then the website will only be available on the network where the apache server is located. If you and i both have routers that serve IP's in the same range, and have our DNS pointing to our apache machines IP, and you go to MY website, it will take you to your own, lol. So there you have it. Newbie error that is easy to overlook. I really hope this helps someone else.
Back to top
groundzero2010



Joined: 10 Sep 2006
Posts: 1

PostPosted: Sun 10 Sep '06 19:27    Post subject: Reply with quote

Seems like a lot of people are having problems with routers and apache.

I'm having this same problem where I can access the server locally (from computers on my router), but not from the internet (I'm having a friend type in my ip in a browser which isn't bringing up my website)

Here is currently what I'm running:
Software:
Windows XP Media Center
Apache 2.2.3
PHP 5.1.6
MySQL 5.0.24
Norton Internet Security

Hardware:
Belkin Wireless Router - F5D7230-4

---------------------------------------------

Currently to access my apache web I have to type in my local ip my router assigns my computer that has the apache server on it (192.168.2.3) This is from local computers on my network. All seems well doing this.

If I type in my web address (splaudio.net) which is forwarded to my connection ip (the ip address my internet service provider gives me) from a local computer on my network, it takes me to my router config page.

If someone outside my lan tries connecting to www.splaudio.net nothing appears.

I've done the following tasks from earlier in this thread...

Quote:

1) Set the DNS on your webhost/parking to point to your connections IP,

2)set your apache machine with a static IP from your DHCP server (router),

3)set apache to listen to your connections IP and on port 80 and,

4)set your router to allow access from outside on the static IP of your apache machine on port 80


Step 3 actually gives me an error when changing the apache config file from

Code:

Listen 80

to...
Code:

Listen 70.178.61.55:80


That error is...
Quote:

(OS 10049) The requested address is not valid in its context. : make_sock: could not bind to address 70.178.61.55:80
no listening sockets available, shutting down
unable to open logs


I'm lost at what to try next. Anyone have more information I could try?
Back to top
knownotknow



Joined: 31 May 2006
Posts: 4
Location: Montana, USA

PostPosted: Mon 11 Sep '06 0:01    Post subject: Reply with quote

Not sure if you have apache up now, or if your site is on another host, but I just followed your URL and I see it just fine. I had the same error with Listen xxx.xxx.xxx.xxx:80 and things are working just fine with Listen set to plain old "80".

What router are you using (brand and model number)? As I understand it, some are toughr than others. I had to set up a virtual server on my router to serve web requests to my apache's ip as well as allow access. I even went as far as Demilitarizing my apache machine so the firewall didn't touch it. Later found out that was unnecessary. Hope that helps.
Back to top
Jorge



Joined: 12 Mar 2006
Posts: 376
Location: Belgium

PostPosted: Mon 11 Sep '06 16:51    Post subject: Reply with quote

If your router is setup to pordforward port 80... an d it doesn't work... try by uninstalling (yes uninstalling- norton, it seems to be the bad guy in a lot of cases
Back to top
knownotknow



Joined: 31 May 2006
Posts: 4
Location: Montana, USA

PostPosted: Wed 13 Sep '06 19:20    Post subject: Reply with quote

Jorge wrote:
If your router is setup to pordforward port 80... an d it doesn't work... try by uninstalling (yes uninstalling- norton, it seems to be the bad guy in a lot of cases


oh yeah. forgot about that one too. a lot of firewalls on the apache machine are bad. personally, i use windows basic firewall. seems like sone alarm didn't like being a part of a webserver either. Smile
Back to top
JimEKessler



Joined: 18 Apr 2010
Posts: 1

PostPosted: Mon 19 Apr '10 0:00    Post subject: Reply with quote

Quote:
Ok, here's a tough one I think. I am trying to set up a webserver at work. I have a domain that I have been using as a test... Discount Shared Web Hosting Web Hosting

I can see the page just fine on any computer on the network, but none outside of the network. We use a router on a cable connection, but i have demilitarized the computer running apache, have set the router's DHCP outside of the range the webserver is on and manually assigned an IP on the computer running apache to one that the router is capable of serving. I've done much more than this as you can imagine, as it seems that the router may be the cause of my troubles.


Although old post, having similar issue with voip router--don't know why but blocked (Aache server version 2.0)
Back to top


Reply to topic   Topic: site is great on LAN, but not on internet View previous topic :: View next topic
Post new topic   Forum Index -> Hardware & Networking