I have a raspberry pi running mariadb connected to a 4G/LTE router.

I want to connect to mariadb from an android phone on 4G/LTE.

As i only have a non puplic IPv4 IP Adress on the 4G/LTE router, i cannot just use the port forwarding on the router.

Any ideas?

Thank you for reading.

  • You need like amazon aws or some cloud computing act so that they both make outbound connections to that. – Tyson Jul 29 '18 at 19:07
  • Thank you for the hint. Can you recommend any tutorial? – Huppel Jul 29 '18 at 20:42

You can't connect directly, you need some kind of reflector (with public IP) that receives the connections from the android phone and forwards them to the raspberry (that has to keep an open connection to the reflector in order to "punch" its NAT).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.