Solved

How to make Apache 2.0 work in my LAN?

Posted on 2004-09-03
4
396 Views
Last Modified: 2010-03-04
Greetings to all experts,

I have a little quesion to ask. For my situation, i use DSL3100R adsl modem to connect all my PC. Now, i have install Apache 2.0 in one of my PC, XP environment. For localhost, it works fine with PHP 4.3.8. However, i can't configure other computer to browse at that PC with apache (coz i wan it to be LAN web server).

Just for information, the adsl modem, the IP is 10.0.0.2(using web browser to configure the modem), the PC with apache is 10.0.0.4(using DHCP-automatic assign)

Can anyone give me a clue?

Thanks.
0
Comment
Question by:J_J
  • 2
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
samri earned 60 total points
ID: 11980356
On the machine apache is running, could you browse by using http://10.0.0.4/ ?

What about your client TCP/IP setting.  All the pc IP address would be 10.0.0.x, and the gateway?  is it the ADSL modem/router - 10.0.0.2 ?  If this is the case, check you ADSL router configuration/firewall setting to allow port-80 from LAN to LAN to be routed.

Cheers,
0
 

Author Comment

by:J_J
ID: 11983199
Yes, i can browse from the machine using 10.0.0.4, but just limit to that local pc. when i try to use 10.0.0.4 at other computer, they all show "we can't find 10.0.0.4"

Ok, the adsl modem IP fixed to 10.0.0.2, every PC can access it well, to make configuration. I wonder would this be the problem that the adsl modem uses it's own web server to make configuration, then other web server can't run??

what i hv done now is for Port Forwarding, i add a new rules, start port 80, end port 80, port type TCP, host IP 10.0.0.4, BUT it not working too...

also, since it is dynamic IP, it will change the IP everytime. so now maybe 10.0.0.4, next time could be 10.0.0.14

For your information, there is LAN & DHCP, NAT, Port Forwarding, Port Triggers, Dynamic DNS at the adsl modem configuration, anyone can give me a clue for it?

thanks!
0
 
LVL 15

Assisted Solution

by:samri
samri earned 60 total points
ID: 11983470
hi J_J,

The promlem now is, the ADSL router is accepting connection on port 80, and the router itself had it's internal webserver (for configuration purpose) running on port 80.  So if you wan to redirect port 80 to another machine on your LAN (which is 10.0.0.4), then then two thing could happen;

1.  It would not be possible since the router will not activate the rule since port 80 is already bound to it's webserver. OR
2.  You would lost connection to the router web server -- then you could not do any configuration at all.  BE careful.

What I can suggest is.

1.  Try to get you apache to run on ports other than 80, Let say 8000.  -- simplest thing to do.  Just edit your apache and locate for "Listen" directive.

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 8000
-- this would cause apache to accept connection on port 8000, ie. your client would need to browse by http://10.0.0.4:8000/


2.  OR, get you ADSL router webserver to run on different port.  This should be possible.  Check you ADSL router config for this.


HTH.



0
 

Author Comment

by:J_J
ID: 11986690
Gosh....i make a mistake....a careless mistake...

i forgot that i hv on my firewall, which run at the background! now.. when i set a rules for it...then...php and apache run with no problem!  (>.<)

anyway, thanks for giving me advise. i will give the marks for u.

cheers!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question