In my home, I have two routers. The first (192.168.1.1) is working as ADSL modem and works as ISP for the second router (192.168.2.1). My LAN (Wifi) is built on the second router.
I am using port forward twice:
- from the first router port 80 to the second router port 80
- from the second router port 80 to my computer port 80 (192.168.2.30)
Everything works fine and using freemyip.com
service I able to create a virtual host on my computer to be accessible from the Internet.
My problem is: The server could not able to catch the client's remote IP. i.e all remote access is recorded as my public IP of the first router (The ADSL modem) while accessing the server through my LAN, the IP is recorded correctly for the device accessed it.
I believe that it is issue related with port forward but I could not able to solve it.