Remotely Send Data Over TCP from ESP32 to PC on different networks

willpowell
Posts: 3
Joined: Wed Sep 22, 2021 2:33 pm

Remotely Send Data Over TCP from ESP32 to PC on different networks

Postby willpowell » Fri Oct 29, 2021 1:21 pm

Hi everyone, hope you are having a good day.

I am currently using a python script to create a local server and then send commands over TCP to the ESP32 (acting as a client). The ESP32 then reads ADC data and sends data back to the PC Server. This works great on a local network, but I am stuck on how to do this remotely i.e. over the internet. I have looked into port forwarding and vpn tunneling as two options, but these seem difficult/laborious to set up.

What method would you recommend for sending data remotely from ESP32 to PC?
Thanks in advance,
Will

ESP_Sprite
Posts: 9770
Joined: Thu Nov 26, 2015 4:08 am

Re: Remotely Send Data Over TCP from ESP32 to PC on different networks

Postby ESP_Sprite » Sat Oct 30, 2021 1:45 am

Aside from the two options you mentioned, a third one is to work via a publicly accessible server to relay the messages.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Remotely Send Data Over TCP from ESP32 to PC on different networks

Postby WiFive » Sat Oct 30, 2021 3:37 pm

Use esp rainmaker or thingspeak or a public mqtt server.

Who is online

Users browsing this forum: No registered users and 90 guests