Link to home
Start Free TrialLog in
Avatar of wardjame
wardjame

asked on

Accessing my webserver inside my network

I am running a home network off a Linksys BEFSR41 v2 router.  I have a webserver running on one of my machines with a statically assigned I.P. address.  I am able to access the server from within my browser by typing in the ip address of my router and forwarding port 80 to the static ip address i.e. http://my.router.ip

Since this is a development server I do not want it to be exposed to the public.  When I type in the local ip address of the server i.e. http://my.server.ip I get the following error:

504 Gateway Timeout
The following error occurred:
Server unreachable

I can ping the server without any problem at my.server.ip but in a web browser it always fails.

Thanks for your help.


ASKER CERTIFIED SOLUTION
Avatar of stevenlewis
stevenlewis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stevenlewis
stevenlewis

example
my router ip is 192.168.0.1 (internal)
my server ip is 192.168.0.2
and my laptop is 192.168.0.5
on the laptop to reach the server I type
http://192.168.0.2

now if I want to allow outside access, then I forward port 80 to 192.168.0.2
and then people on the outside just type in my external ip address and the router forwards the request to the internal 192.168.0.2 where my server is listening to port 80
Have you routed-translated the internal IP of your webserver ? Or using arp to modify routing trough router ?

StevenLewis, Can we do port forwarding from another thing that a router ?
check the deafult gateway on your sever !!!
>StevenLewis, Can we do port forwarding from another thing that a router
not sure what you mean??
I was just wondering if we could do a port forwarding from a firewall for example ? or is it a specific command for routers ?
A firewall is different than a router, the router needs to forward the port, but a firewall has to open the port to allow packets to pass thru
now today there are a lot of "combo" products that combine routers and firewalls (I have a dlink that does this)
and I forward the port (21 for ftp)
this also tells the firewall to open the port
wardjame:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.