make two arduino communicate over internet

Hello,
Getting bored over here and foundmy old RC car in the attic...
I've got an idea, control it over internet via a smartphone with 4G so that I can drive around town from the comfort of my couch !
Didn't find a lot of projects similar to start doing something right out of the batch, so thought I'dd pass here to ask a few questions !

Here is what the route of the signal should look like ( I think, almost sure... but maybe not right ^^ )

radiocontroller---arduino A---PC - - - - Internet and 4G and stuff - - - - smartphone---- arduino B---ESC and servo

The question is, any idea how to get infos from arduino A to arduino B ?

I don't know a thing about internet protocoles and everything, I've searched a little and found that sockets that link directly two clients are terribly confusing, API seems a good idea but is overkill, and that youtube and reddit are terribly time consuming !

Any hint for an easy way to do it would be great !

Thanks a lot and stay safe, don't move from your couch !

carlito

I would guess that both your computer and phone have dynamic IP addresses. I would use dynDNS or similar to create a domain name to use instead of an IP address. ex. instead of your connection looking like 10.12.34.143 it would be an address like myRaceCar.dynDNS.org. This was you can establish a route between your computer and phone. How are you going to get the internet from your phone to the Arduino?

It might be easier and cheaper to use a free MQTT broker instead of hosting your own website.

I was thinking that making an app with MIT app inventor would be an easy way to make the arduino communicate with the phone ( ie : arduino sends a connection status to the phone, then, the phone sends a connection status to the computer ) and therefore send stuff over the net. My router already has it's own domain name.
I don't know what MQTT his, I'll check it out tommorow after a good rest... 3h30 here !

thanks :slight_smile: