• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP Webserver unresponsive to second client

Q&A Forum › Category: ESP32 › ESP Webserver unresponsive to second client
0 Vote Up Vote Down
Andy Kotowski asked 7 years ago

RUnning the webserver example I find that when you try to access the server from a second device the server does not respond.  Resetting the esp causes the server to respond to whatever device first accesses the web page.

5 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Hello Andy, which Unit are you following? Which web browser are you using?
It looks like your web browser is not closing the connection (after you open the web server with one client), so the ESP32 is not ready to receive the connection from a new client.

0 Vote Up Vote Down
Andy Kotowski answered 7 years ago

THanks for the quick response.
Module 4, Unit 4.
I’m using Google Chrome.
Yes, it seems the browser is not disconnecting.  Is there a way for the ESP to force disconnect since I cant control users browsers?
By the way:  is there a users manual, or at least call and paramter descriptions of the various libraries, or do I just have to decode the *.h files?

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

If the client (Google Chrome) doesn’t automatically stop the connection, I don’t think there’s a way to force the disconnect. Does it disconnect when you close the web browser window?

I usually use the Arduino reference guide (since most functions are the same): https://www.arduino.cc/en/Reference/WiFi

However, the ESP32 has new functions that aren’t described there. The documentation is poor, so I often use the built-in Github repository search features.

As you said, you can also navigate through the files:

  • https://github.com/espressif/arduino-esp32/tree/master/libraries/WiFi

Or use the Keywords.txt file to see the available datatypes and functions:

  • https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/keywords.txt
0 Vote Up Vote Down
Andy Kotowski answered 7 years ago

Yes, disconnecting the web browser works.
Re-initializing wifi also works (WiFi.disconnect();  and  WiFi.begin(ssid, password);),
while it takes time, it is under the control of the esp.

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Yes, but this shouldn’t happen. After accessing the web server page and it loaded all the buttons, it should automatically close the connection. I’ve tried to replicate this issue on my end to see if I could provide a good a solution, but it works fine on my web browser…

I’ll be testing it a bit more tomorrow on a different PC to see, if I can figure out a solution. Thanks for your patience!

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.