• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

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.

1 Solution
first you don't need to forward port 80, if you don't wish to allow outside access port forwarding is only to allow others outside the network acces  to the server
now What server software are you using? IIS, Apache?
Is the server listening to the NIC on the machine that is hosting
you should be able to reach it on the same machine that is the server by using
and http://ip address
if you can't reach the page on the machine that is running the srver software, then the server is not configured correctly
in othere words test it on the local machine, and then test it on the machine in the network
my router ip is (internal)
my server ip is
and my laptop is
on the laptop to reach the server I type

now if I want to allow outside access, then I forward port 80 to
and then people on the outside just type in my external ip address and the router forwards the request to the internal 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 ?
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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
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 
Post your closing recommendations!  No comment means you don't care.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now