I have the following network:
Modem/Router (#1)
WWW <--> +-----------------------+
| 192.168.1.1 (bridged) | Router (#2)
+-----------------------+ <--> +-------------------------+
| 192.168.2.1 (Router) |
| 192.168.2.107 (HTTP) |
+-------------------------+
Any machine connected to router #2 can access internet. But from the Internet, none of the machine are reached. I've already added that IP:Port to port forwarding on router #2.
This was introduced recently. Before that, all the machines were connected to router #1 and there was no sub-network, and I could access from the internet the webserver on that machine.
How can I access from outside (i.e. Internet), that webserver on IP 192.168.1.107
?
Is this a problem of the netmask?
EDIT
I've fixed the problem with router #2. It now has IP 192.168.2.1. See below detailed info of both routers:
Router #1 (The one that is directly connected to Internet)
IP Address : 192.168.1.1
IP Subnet Mask : 255.255.255.0
DHCP : Enabled
Router #2
IP Address : 192.168.2.1
IP Subnet Mask : 255.255.255.0
DHCP : Enabled
Webserver Connected to Router #2, HTTP running on port 80
IP Address : 192.168.2.107
IP Subnet Mask : 255.255.255.0
- If I connect a computer to router #1, I can't access router #2 nor any machine connected to it, therefore, I can't access the webserver.
- If I connect a computer to router #2, I can access both routers and also the webserver. I have Internet, no matter what router I'm connected.
- People from outside (Internet) still can't access the webserver.