I understand ngrok needs to be running on a local pc in order to facilitate remote access to a esp32. But just to be clear, the esp32 also needs to be directly connected to the same local pc? I tried powering it away from the pc, thinking that the wifi connectivity would maintain communication, but it did not.
Yes, ngrok needs to run on a PC or Raspberry Pi that has a full operating system in order to make the ESP accessible from anywhere.
- Your PC needs to establish an Internet connection with your router (Wi-Fi or Ethernet)
- The ESP32 needs to be connected to the same network as your PC (via Wi-Fi). So, the ESP needs to be fairly close to the router to continue to have a Wi-Fi connection.
The ngrok connection should work with any web browser… It shouldn’t make a difference whether you are using Android, PC or iPhone…