Page 1 of 1

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

Posted: Fri Oct 29, 2021 1:21 pm
by willpowell
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

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

Posted: Sat Oct 30, 2021 1:45 am
by ESP_Sprite
Aside from the two options you mentioned, a third one is to work via a publicly accessible server to relay the messages.

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

Posted: Sat Oct 30, 2021 3:37 pm
by WiFive
Use esp rainmaker or thingspeak or a public mqtt server.