Introduction: ESP8266 FROM ANYWHERE

Picture of ESP8266 FROM ANYWHERE

In this Instructable i will explain how you can to access your ESP8266 (WEB SERVER MODE) from anywhere in the world.

Step 1: Problem

Normally, when you use the ESP8266 as web server, tests are done using the LAN network. When you want to test from the WAN, you normally have to config your router (NAT/FIREWALL) to accept outside access. If you are familiar with your router, this is not a problem, but imagine dozens of other routers models where you need to know each one or need to know the NET access rights? Maybe it will be headache for you.

Step 2: What Do I Need ?

Well, i need a solution where i can add dozens of ESP8266 in my enviroment (LAN) and give access to all of them (web server) in anywhere of world without have to know anything about router config (NAT/FIREWALL) .

I want too that dozens of ESP8266 can be accessed from WEB, IOS or ANDROID, from WAN and i can share it for anyone.

Step 3: The Solution

To solve these need, here some steps:

create a INTERNET CLOUD account on WEAVED;

purchase one low cost AP running openwrt;

enable the AP to access the Internet;

install a special software to enable GL-INET to register on WEAVED;

make your ESP8266 connect to GL-INET;

make your ESP8266 a web server;

setup the GL-INET proxy to access the ESP8266 ip/port;

access the ESP8266 webpage from developer.weaved.com

access the ESP8266 webpage from IOS appShare your ESP8266

Step 4: Create a INTERNET CLOUD Account on Weaved

Picture of Create a INTERNET CLOUD Account on Weaved

Enter in developer.weaved.com, register and enter you login and password. Stay connected to developer.weaved.com

Step 5: Purchase One Low Cost AP Running Openwrt

Picture of Purchase One Low Cost AP Running Openwrt

For my tests, i purchased the AP modem GL-INET, where the tests were successfull. You could find herehttp://www.gl-inet.com/w/?page_id=285 and buy it.

Questions about GL-INET, contact alzhao@gl-inet.com

Step 6: Enable the GL-INET to Access the Internet

Picture of Enable the GL-INET to Access the Internet

The GL-INET is very easy to use, there is a friendly user interface. Config it to access the INTERNET, i suggest to config your router as repeater.The GL-INET ip is 192.168.8.1

Step 7: Install a Special Software on GL-INET to Enable GL-INET to Register on WEAVED (stay Connected to Developer.weaved.com)

Picture of Install a Special Software on GL-INET  to Enable GL-INET to Register on WEAVED (stay Connected to Developer.weaved.com)

Connect your PC to the GL-INET and use the Putty utility, open a terminal to access the GL-INET (SSH), port 192.168.8.1

type your root login/password (root/goodlife) (factory password)

wget http://home.mycal.net/gl-inet.tgzcopy it to /root (you are in the root)

tar -xvzf gl-inet.tgz cd gl-weaved

./install (be shure that you are connected to developer.weaved.com now (logged) and that you are in the same NET of GL-INET)

now reset the GL-INET or type reboot should be able to register it now

In developer.weaved.com webpage you will be adviced that there is a new device waiting to register in your account, enable it (confirm the register) and you will see it the current list of devices.

Click on it and weaved will connect to port 80 of your GL-INET and show the webpage.

But now, you want to connect to ESP8266's 8080 port ( web server), then please, follow the steps.

Step 8: Make Your ESP8266 Connect to GL-INET

Picture of Make Your ESP8266 Connect to GL-INET

Config your ESP8266 to connect to GL-INET and make it static ip, for example, 192.168.8.100.

Config your ESP8266 to be a web server in some port, for example 8080.

I have used the following ESP8266 web server example, that sounds very cool. https://github.com/marcoskirsch/nodemcu-httpserve...

See the instructions to install it and change the settings to 8080 and static ip to 192.168.8.100. wifi.sta.setip({ip="ip",netmask="255.255.255.0",gateway="gateway"})

Setup the GL-INET proxy to access the ESP8266 ip/port

In the folder /etc/weaved you will find a file called web.linux.conf.

Please, edit it, adding the following lines at end of file

proxy_dest_port 8080 (ESP8266 web server port) proxy_dest_ip 192.168.8.100 (ESP8266 static ip)

Save it and then reboot your GL-INET

If you wants to unregister your ESP8266, remove the following line

# password - erase this line to unregister the device
#password XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Step 9: Accessing the ESP8266 Webpage From Developer.weaved.com

Picture of Accessing the ESP8266 Webpage From Developer.weaved.com

Enter in the developer.weaved.com, insert you login and password and select the device ES8266.

You can change the device name, for example, to door, windows, gate.

You can share the esp8266 webpages for other, in the Settings.

After this, Weaved will show the ESP8266 web server for you.

Step 10: Accessing the ESP8266 Webpage From IOS App

Picture of Accessing the ESP8266 Webpage From IOS App

You should download the weaved on app store or use the web browser.

https://itunes.apple.com/us/app/weaved/id937372469?mt=8

Step 11: Share My ESP8266

Picture of Share My ESP8266

If you didn´t get the GL-INET and ESP8266, but want to make a test, please, register now in the developer.weaved.com and send us you weaved ID that i will share my ESP8266 for you to do tests.

my e-mail is tcpipchip@hotmail.com

Comments

illumation_ (author)2017-05-12

Looks like a weaved.com ad. With some respect to your efforts, i
think this very complicated and you rely on third-party services. If you
have a router, which is always on, you can set-up a secured webserver
(on a tablet or little computer) and with some php scripting you can
create a page to manage all your devices. Using this way, you doesn't
have to share your devices to world by providing direct access to it. I
think this is much safer (when setup correctly) and more relaible (because it doesn't rely on third-part services) and you have more control.

lowerpower (author)illumation_2017-05-19

I have used the Weaved service and it is very convenient, it works with cellular modems that do not have real IP addresses and customer locations without any custom setup. It also keep your devices hidden from the world without exposing any knowledge to services like shodan. I use it with SSH on my cellular modem connected devices and I do not think it could be safer. Weaved does not have my SSH password and the service an only be used for the connection part.

Before I found weaved I tried paying for real IP addresses on cellular and I would use most of my bandwidth just on port scans, behind cellular NAT there is no port scans.

And lastly I can plug my device in anywhere, any customer location and it works, I just ship them my box, they plug it in and it works, I can manage it just by logging in to weaved an connect to it.

IshuJ1 (author)2016-08-28

Thanks for the post, Can you tell how to connect ESP8266 to a proxy server ?

HieuN16 (author)2015-11-10

the sofware putty can not access my router. Please help me!

tcpipchip (author)HieuN162015-12-21

Please, send me a email to tcpipchip@hotmail.com

NamitS1 (author)2015-08-26

very nice thanks

tcpipchip (author)NamitS12015-09-08

welcome my friend!

seaspac1 (author)2015-08-09

can I use some other router like TPLINK ?

tcpipchip (author)seaspac12015-09-08

I have tested on a router running AR9331

tcpipchip (author)seaspac12015-08-25

Wich is the TPLINK´s processor ?

seamster (author)2015-04-03

Very nice, thanks for sharing this.

tcpipchip (author)seamster2015-08-25

Thanks!!!

trogalko (author)2015-08-10

Since the link is dead, here is new download link provided by the Author : https://developer.weaved.com/portal/members/domino...
I'll show the result of my project here when it is finished.

Thanks Mr. Miguel

tcpipchip (author)trogalko2015-08-25

Thanks!!!!

tcpipchip (author)2015-04-03

Thanks. Create your weaved account and i share you my esp8266