Cloned app connected to a different WiFi/cellular data doesn't work

Hello friends,

so I have managed to create a project using Blynk which communicates with the raspberry pi, and it works just fine from my device. So what I wanted was for the app to work from all devices, connected to any WiFi network or from cellular data.

So what I did was I cloned the Blynk app from my phone to my friend’s phone (this was done by him scanning the QR code for my project) and since he was connected to the same WiFi as my raspberry pi, it worked perfectly. But when I tested whether it would work from my friend’s phone if he connected his phone to cellular data rather than the same WiFi connection, the problems start. Basically he is not able to connect to the Blynk server from where I am running it from my raspberry pi.

So in short, what I want is for my raspberry Pi to run the Blynk server and my friend to operate the hardware using the cloned app from anywhere and at anytime using his cellular data. If there is anyone who can help me on this, I would be really grateful to them.

Your local server needs to be accessible from the outside world, rather than just within your home network.
To do this, your router needs to have the necessary ports open and forwarded to your Pi.
If, like most people, your ISP provides an external IP address that changes regularly then you’ll also need to use a dynamic DDNS service like Noip.com and an update client running on your Pi to keep the DDNS service updated with your current IP.
When you have all of this, your app needs to be configured to use your DDNS url and the appropriate port.

Search the forum for “port forwarding”, “DDNS” and “local server” and you’ll find lots of info on how to do this.

Pete.

This is a standard networking issue, nothing Blynk specific. You need to setup port forwarding in your router and you friend then connects to your Public IP and port and the router redirects to your RPi.

Google Port forwarding for your router type.

EDIT - Ha, @PeteKnight is also sharing some Christmas cheer I see :smiley:

1 Like

Of course @Gunner. Merry Christmas!

Pete.

1 Like