martinayotte wrote:The ESP8266WebServer is on top of the ESP8266WiFi.
The ESP8266WiFi is a plain TCP Server/Client, so with basic connections functionalities.
It can be use for Telnet server for example, but for WebServer, you are on your own to add all the HTTP protocols by yourself, by that I means preparing headers, parsing requests, etc.
ESP8266WebServer is doing all that for you, so it is easier to create a WebServer and avoiding re-inventing the wheel.
BTW, server.on() is simply to attach callback functions depending of the URL path, while the server.handle() is really where all processes are running under the hood, it should be called by your loop() and your loop() should not stay in a blocking process.
Thanks so much for your reply, Now i now ESP8266WiFi different with ESP8266WebServer thanks again
are you Know how can get client IP ? i mean when some client connect to ESP server hoe can get new Client IP?