Accessing my webserver inside my network

Posted on 2003-02-18
Medium Priority
Last Modified: 2010-04-11
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.

Question by:wardjame
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 41

Accepted Solution

stevenlewis earned 80 total points
ID: 7979640
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
LVL 41

Expert Comment

ID: 7979651
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

Expert Comment

ID: 7980379
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 ?
Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.


Expert Comment

ID: 7995696
check the deafult gateway on your sever !!!
LVL 41

Expert Comment

ID: 7996851
>StevenLewis, Can we do port forwarding from another thing that a router
not sure what you mean??

Expert Comment

ID: 8003220
I was just wondering if we could do a port forwarding from a firewall for example ? or is it a specific command for routers ?
LVL 41

Expert Comment

ID: 8003286
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

Expert Comment

ID: 9153497
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.

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

771 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