ESP8266 Webserver Step-By-Step Using Arduino IDE (Generate Local IP)


In this tutorial we are going to learn. How to display any message on local server using Arduino?

For this tutorial we required Library File that is-
So let’s discuss ESP8266WiFi.h file using Arduino.In our program we need to ESP8266WiFi.h library file,for installing this you have to go the “GitHub URL this is the officially ESP8266 core for Arduino github and all this step of installation is given in this page.

You just need to copy the URL:- esp8266com-index.json

Now go to the Arduino FilePreferences Paste the above URL in the arduino additional board manager sectionClick on ok 

Again Go to toolsBoardBoard managerWrite ESP8266 More infoClick on INSTALL

Once the installtion completed closed arduino and now we are going to  included this ESP8266WiFi.h file.
Put your wifi SSID and Passwaord that you want to connect,80 is port number of webserver.115200 is our defult board rate (you can set as 9600 board rate) serial.println and serial.println function print message on serial monitor.

wifi.begin this funcion gives your SSID and Passward .Which is mention in veriable.In this while loop we check any network is avaliable or not ,If no network is avaliable it only prints dots(…)  and if network is avaliable it prints wifi connected and wifi stared  wifi.local IP function provides local IP after thae reset your esp8266 node MCU module and Copy these IP thats printed on your Arduino serial monitor.
i have printed this message in client.println function using HTML code that i want to display on webserver. Let us check these IP on anther computer Type (change as per your esp8266 Node MCU IP address)
Now see these is how you can display any message on webserver.

About the author

Abhay Kalmegh

Hey Guys, I’m Abhay Kalmegh, I’m a Electronics hobbyest and digital marketing nut – it’s my career, hobby, and passion.

View all posts


Leave a Reply

Your email address will not be published. Required fields are marked *