Random Nerd Tutorials

How to Control Your ESP8266 From Anywhere in the World


Hey there,

The most common questions I get about the ESP8266 WiFi Modules are: “Is it possible to control my ESP8266 from anywhere in the world?” and “How can I control my ESP8266 from anywhere?”.

I’m happy to announce today that I have a solution for that problem.

With the new version of Home Automation Server you can add an ESP8266 to your dashboard and control your ESP8266 GPIOs from anywhere in less than 5 minutes!

Let’s see how you can do that…

Watch the video demonstration below

Step #1 – Register Your Free Account

First you need to create your free account at Home Automation Server. Go to http://app.homeautomationserver.com/register, type all your details and submit your registration.

Then go to your email address, confirm your account and login into your account.

Important: Please note that this is the new version of Home Automation Server, if you already created an account in the old Home Automation Server your account still works with the same login details. You can reset your password here.


Step #2 – Adding an ESP8266 to Your Dashboard

When you login for the first time you’ll need to click the green button that appears (see Figure below) that says “Click here to add your ESP8266”.


You  also need to upload some Lua code to your ESP8266. Click the gray button “First time here? Click here to generate your ESP8266 code”.


Follow the instructions that appear below the gray button:

  1. Flash your ESP8266 with NodeMCU firmware
  2. Upload the code generated at Home Automation Server to your ESP8266
  3. Follow these schematics below to control 2 LEDs with your ESP8266

Step #3 – Test It

Now you can control your ESP8266 GPIOs from outside your home network using any device that has browser!

Click the “Turn On” buttons to make your ESP8266 GPIOs go HIGH.



NOTE: The GPIOs of your ESP8266 are updated every 20 seconds, please respect the API calls limit so we don’t overload the server. Thank you!

Do you have any questions or feedback? Leave a comment down below!

If you like this post probably you might like my next ones, so subscribe my blog and my Facebook page. Thanks for reading,

-Rui Santos

Learn ESP32 with Arduino IDE

This our complete guide to program the ESP32 with Arduino IDE, including projects, tips, and tricks! The registrations are open, so SIGN UP NOW »

Leave a Comment:

Add Your Reply

⏰ Registrations are open ⏰
Sign up for "Learn ESP32 with Arduino IDE" Course