Dear Mr. Rui. I was studying “Unit 6 – Making Your Web Server Accessible from Anywhere in the World” of your “Home Automation ESP8266” Book.
I was suspenseful in my work. But my question is. how to make this web server accessible from any where in the world. Without Ngrok. because for this we have to keep our laptop / computer also On. I will only keep on ESP 8266 with connected hardware and my internet router. Can you please advise.
Hello. In my opinion Ngrok is a better and more secure way of accessing your ESP from anywhere. However, you could do “port forwarding” in your router to make your board accessible from anywhere, but that’s not very secure. What do you want to do with your project? Access sensor readings from anywhere or control an output?
Thanks Mr. Rui. I don’t want to keep my laptop on but I should be able to access temperature reading on my mobile from remote place.
I will keep ON my Internet router and ESP 8266 setup
If you follow this tutorial, you’ll be able to understand what’s port forwarding and how to do it: https://www.youtube.com/watch?v=6EgWkUmgxzg
Your ESP8266 should be running a web server example and you need to know the ESP IP Address. After that login into your router web dashboard and enter the IP address to port forward. You might want to search on Google for “your router name” + “port forwarding”. You’ll probably find someone trying to do it with your router.
What do you mean? For this, you just need an ESP8266 web server + your router. Then, you configure your router with port forwarding to make your ESP8266 accessible from anywhere. What’s your router name and model?
I’ve never used any of these softwares, but if you go to “Google Play Store” and search for “port forward”. There are many apps that allow you to do port forwarding. I recommend installing and trying one of the apps with the highest rating
Hello Rui and Mr Dattatraya Apte
Firstly i.m very happy to discussion with you on this subject and participes to your forum, it’s first time for me. Following the codes and recommendations of RNT, I am beginning to better understand how ESP8266 works for local and remote automation applications on the Internet.
1/ Currently I have a first experience from a RNT sketch in server mode that has been published in the ESP8266 Home Automation book and with a Base 64 security access code and a port transfer to the router that allows the connection with the ESP8266 from anywhere and also by phone on 3 or 4G.
This sketch works perfectly except for the change of IP which unfortunately does not remain fixed / static. From the RNT tuttorial to have a fixed and static IP address in the ESP8266, I will try to add some lines of code in my sketch and check if there is no conflict with the router at the level of port forwarding and fixed IP recognition.
Do you have any recommendations or experience on this topic to share?
2/ Actually I am working on another new project using the ESP32 and also compatible for the ESP8266 published by RNT in the book Learn the ESP32 on Arduino IDE. I integrated in the code ESP32 Web RNT tuttorial server to obtain an IP Static / Fixed and the program works perfectly in local mode. However, the project does not work in remote mode and the router does not recognize the port of the fixed IP to transfer.
Do you have experience and results with this project in remote mode for connection fromage anywhere ? I think the tunnel mode is also interesting, but it is unfortunately necessary to have a PC on standby permanently and that for IOT is a technical solution too heavy in my opinion.
There must be other ways to get a secure remote connection.
Thank you for your comments and remarks on these exciting topics and thank you again to Rui and his team for their work and the quality of their publications.
Best regards and see you soon on RNT Forum,
- If the IP is available in your network, you can assign it to your ESP
- Unfortunately I don’t have any information on that subject, that is different from router to router. I also don’t do port forwarding in any of my personal projects…
You can use ngrok.com to establish a secure tunnel to your network. Thank!
I’m mark this thread as CLOSED, please continue the conversation here: https://rntlab.com/question/esp8266-wifi-server-fixed-ip-and-connect-remote-from-any-where/