Controlling Arduino from a web app over Ethernet

Hello Everyone,

I'd like to control my Arduino from a web app. The web app will run on a web server that won't be on the same network as the Arduino. If I press a button on the web app, the server sends a a request to the Arduino and it does something (e.g. turn on a LED). I'd like to connect my Arduino to the Internet via an Ethernet shield.
How can I send a request to the Arduino if I don't want/can't use Dynamic DNS and my IP address is not static?
Thank you for your help in advance!

Máté

Have the arduino initiate the connection to the server so the server knows its IP.

Be sure to design in feedback from the Arduino is you want to control it.

I just have to send a GET request to the server? And if yes how often?

As often as it requires, I guess?

I'd like to create a system like Blynk. Whenever I press a button on the web server the Arduino will do something.

I don't know what that is.
If you don't have experience doing something like this, Adafruit.io may have all the capability you need built in, and they have a free tier.

You can use an ESP32 to do this, not ethernet, but WIFI.

Google

Randomnerds

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.