Help Setting up A WebServer Through A Router

Networking, Wireless Routers (802.11 a/b/g/n/ac/ax WiFi), NAT, LAN configuration, equipment, cabling, hubs, switches, and general network discussion
Post Reply
Enigma9

Help Setting up A WebServer Through A Router

Post by Enigma9 »

I need help setting up a wenserver through a outer. See heres my problem everytime I install apache i try the ip that the router gave me internally and for example (192.168.1.xxx) and the one that the router uses externally for example (28.45.56.xxx) so when i set up apache how do i know which is my ip ( because if told my friends to try both of those ips to see if the webservs up and they say no).


THANK YOU
KuRe
Regular Member
Posts: 145
Joined: Thu May 16, 2002 1:03 pm

Post by KuRe »

The ip you would want to tell your friends would be the 28.45.56.xxx one. That is your WAN ip. The other ip is your LAN ip (just for your network). The most probable reason your friends cannot connect to your webserver is because the ports are not yet forwarded. To do this, you'll need to access your router's configuration and forward TCP port 80 (I think) to your LAN address.
cyberskye
Senior Member
Posts: 4717
Joined: Wed Jan 10, 2001 12:00 am
Location: DC

Post by cyberskye »

Kure is correct. From outside your LAN, the router is the only IP that is visible.


192.168.x.x is a non-routable (or private) address . Your router should forward the WAN ip address port 80 to the 1923.168.x.x address to enable people outside your network to access the webserver.

If connecting to the webserver from a machine inside your network, you would use the internal ip address 192.168.x.x

In all cases, apache should be configured (in httpd.conf) to listen on your internal address port 80.

Can you access the webserver from your LAN?
anything is possible - nothing is free

:wth:
Blisster wrote:It *would* be brokeback bay if I in fact went and hung out with Skye and co (did I mention he is teh hotness?)
:wth:
Post Reply