title: Does the subnet mask have to be the same on two devices connected by ethernet?
body: <p>I have 2 devices, a box(we'll call this a router) and a device that connects to the router by ethernet.</p>
  <p><strong>Router</strong></p>
  <p>IP address: 10.114.76.2</p>
  <p>Ethernet IP: 192.168.1.1</p>
  <p>Subnet Mask: 255.255.255.0</p>
  <p><strong>Device 1</strong></p>
  <p>LAN IP: 192.168.1.1</p>
  <p>IP address: 10.10.6.106</p>
  <p>Subnet Mask: 255.255.252.0</p>
  <p>On the router, I port forward Device 1 so we can access device 1 through the router. For example: We port forward port 81 to 10.10.6.106 and port 80 so we can access device 1 by typing in 10.114.76.2:81.</p>
  <p>In most cases this works fine but in this particular instance, I am having trouble connecting them. All other times I have set this up the subnet masks were the same but in this case, the subnet mask of the device 1 is different. In this particular setup, would the subnet mask be the problem? Do they both devices have to have the same subnet mask to connect to each other?</p>