Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am forwarding port 80 on binatone router to my server running apache http server. the configuration works perfect when i access the server from outside of LAN but when i try accessing server from inside of the Same LAN(using public IP) where the server is connected it open's up the binatone configuration interface.

How can i make it to forward port 80 when accessed from within LAN (if this can be done then how will i access the router configuration then) ?

share|improve this question

closed as off topic by Jay, Dave M, Ward, mdpc, Khaled Feb 26 '13 at 8:08

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

The most convinient way to reach your goal is to set DNS caching on router (if it is possible) or editing hosts file on your workstation. The idea is you should access your server via LAN IP when you're on LAN because of, as you've mentioned, if you forward 80 port for router's LAN interface, you won't be able to access router's web configuration interface. Just add to your hosts file: your-server.tld where your-server.tld is public accessible name of your server and is its local IP.

share|improve this answer

I guess you are using the hostname to access your server, and in DNS this points at the Binatone's IP address. When the Binatone gets requests from the inside, it doesn't do the port forwarding.

You either need to access your server via an alternative name, IP address, or make the DNS name resolve to the internal IP address. The hosts file change suggested by @slimsuperhero is the simplest way if you are the only person working on the web server. If there are more people then you probably want to do something with internal DNS resolution.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.