I have a 4G router (DLINK DWR-921), its connected to the internet and its local IP is 192.168.0.1
I also have a WiFi router (ASUS RT-AC87U).
Connected to the WiFi router i have a raspberry pi box that is running a node app accessible on port 1234
So a quick diagram:
INTERNET ---->4G Router---->WiFi router----->RPI box
The reason i don't use just the 4G router is that its not that reliable.
How can i access the RPI box from the internet?
I have tried to mess with the routers settings but almost everytime i had to reset them as i got it wrong.
Some more details:
4G router = 192.168.0.1 - DHCP ON, WiFi off and LAN connected to the Wifi Router (LAN port to the Asus's WAN port)
WiFi router - 192.168.1.1 - DHCP ON, WiFi ON, LAN connected to the RPI box, WAN ip: 192.168.0.50 (given probably by the 4G routers DHCP server)
RPI box - 192.168.1.10 - DHCP given IP
I also want to mention that the RPI box has an internet connection.
Can someone please help me connect these things and access my RPI box from the internet.
Let me know if you anyone requires more details.
Thank you.