apache access from local

I have set up a apache server in my company which is behind a router. My router have been set up a port forwards (that is 203.xxx.xxx.xxx to 192.168.0.1) so I can access my apache server anywhere. But I can't access my apache server in local by the ip 203.xxx.xxx.xxx. I can just access it by the ip 192.168.0.1. Why is it? Should I set something for my apache server?
huang_ckAsked:
Who is Participating?
 
manav_mathurConnect With a Mentor Commented:
Usually, routers do not route traffic internal to a subnet. Hence, your router forwarding won't work on web-requests generated bt a machine inside your company. Inside the subnet, your apache machine is recognized as 192.168.0.1.
0
 
pdub79Commented:
So, if you Apache server is on 192.168.0.1, just direct your systems on your LAN to that IP. Any systems outside your LAN will have to be directed to the router first.
0
 
manav_mathurCommented:
for a class B network, your routing tables on each machine should have entries for 192.168.0.0/16 for accessing local subnet, and a default entry for your router IP as the default gateway. Can you post the output of 'route' command??
0
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.

All Courses

From novice to tech pro — start learning today.