The use of the ESP8266 in the world of IoT

User avatar
By Harnam
#79533 Hello everyone !
I am trying to make a esp8266 IoT project controlling the led from the web page.
see the attached file" led_on_webserver.ino." I used for this project
The following steps were taken:
1. Started server on port of esp i.e. port 255
2. Making the IP of ESP module STATIC i,e, 192.168.1.72
The message was displayed on serial monitor:-
WiFi connected
Server started
Enter this URL to control ESP8266: http://192.168.1.72:255
the web page was opened and I could control the led from the web page

3.PORT FORWARD settings under my jiofi Router Configuration so that any access to port (255)
from external world is directed to the ESP Server port.
It was successfully configured to the address: http://10.83.195.152:255/ and led was switched
ON/OFF from the web page.
4.Windows Firewall setting to allow port 255 for communication

When I try to access this webpage from other network, it fails.

PROBLEM: when I check the port with the help of " Can you see me website" from my lap top
it gives error port closed. I think it is because the espwebserver is connected to my router,
not through my laptop.
So, it means any request from the net will directly be forwarded to the ESP.
with the process like: Outside world server-> router -> ESP8266.

I don't know how to do this process. can any one suggest me to resolve this problem ?
You do not have the required permissions to view the files attached to this post.
User avatar
By QuickFix
#79567 Not actually an ESP8266 topic, but as @schufti hinted: make sure your router/modem uses IPv4 only.
Also add a port forward rule into your router:
  • Outside IP: 0.0.0.0
  • Outside port: 255
  • Inside IP: 192.168.1.72
  • Inside port: 255
  • Protocols: TCP