I am trying to make a website on my computer accessible on the Internet.
I installed the Apache server and am able to access the site with http://localhost. My PC is connected to the Internet with a router (192.168.2.1) and DLink DSL 2500U modem (192.168.1.1). In my modem's settings I tried to forward requests on Port 80 to the address I get from the router (192.168.2.168) but it doesn't work because of the different subnets the devices use.
When I enter 192.168.1.2 or 192.168.1.3 in my browser, I can access the site. If I disable the network card those adresses still work, and I can't understand why. I also wonder why there are two local adresses. Could you help me to figure out the reasons?
I tried to port forward to those adresses as well, but I always got the control panel of the DSL modem when entering the public WAN adress. I tried to connect the modem directly to my PC and it didn't work either. Please, help figure out what causes the issue?
Thanks!