Zend certified PHP/Magento developer

Access device between two routers connected to a gateway

I have two routers connected to a modem

Router A (Linksys mx8500):

  • connected to the modem and has a gateway IP of 192.168.1.1
  • has only one device which is a server with a local IP of 192.168.1.80

Router B (eero S010011):

  • connected to the modem and has a gateway IP of 192.168.4.1
  • has a lot of devices like my phone and desktop

When attempting to reach my server while not connected to Router B, I am able to connect to it. However, when connecting to the server within Router B it does not work. Connecting to the server within router A does work though. How can I fix this? Thanks.