Communicate between 2raspberry pi

Dear pros,

I am looking for a solution for my network: I have: raspberry1_connected_hotspot4G_1 (stay in province 1) and raspberry2_connected_hotspot4G_2 (stay in province 2). I want to send data between raspberry1 raspberry2. Do you have any suggestions?

Thanks,

Regards

hng

You need to be a member of IoT Central to add comments!

Join IoT Central

Email me when people reply –

Replies

  • Difficult if you don't have a public IP address for either raspi1 or raspi2. Have you tried ngrok (https://ngrok.com/) before? You can set up a free account and get a public IP (sort of) to test your raspi1 <--> raspi2 connection.

    To test the connection:
    - launch a simple tcp echo server in raspi2, say listening to port 14000.
    - run ngrok in raspi2 "ngrok tcp 14000" and jot down the returned public IP address
    - launch a simple tcp echo client in raspi1 and have it connect to the "returned public IP address, port 14000" socket. Send some data to this socket
    - verify the tcp echo server in raspi2 receives the data from raspi1 echo client.

    ngrok - secure introspectable tunnels to localhost
    ngrok secure introspectable tunnels to localhost webhook development tool and debugging tool
This reply was deleted.

Upcoming IoT Events

More IoT News

Arcadia makes supporting clean energy easier

Nowadays, it’s easier than ever to power your home with clean energy, and yet, many Americans don’t know how to make the switch. Luckily, you don’t have to install expensive solar panels or switch utility companies…

Continue

Answering your Huawei ban questions

A lot has happened since we uploaded our most recent video about the Huawei ban last month. Another reprieve has been issued, licenses have been granted and the FCC has officially barred Huawei equipment from U.S. networks. Our viewers had some… Continue

IoT Career Opportunities