• 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

Finding an ESP website on a local network easily

Q&A Forum › Category: ESP32 › Finding an ESP website on a local network easily
0 Vote Up Vote Down
Hamish Low asked 4 years ago

If I send a typical ESP project to a friend what is the easiest way for the device to be introduced to their Wifi network and then for the users to reliably find the server page of the device on their local network ?
Assume plugging a PC into the USB port is not available – so we can have the device host its own wifi first, the user sign onto this and sets the SSID and password, but can we also fix the IP for the ESP device then ?  or set a hostname that can be used locally to find the device ?
We can’t assume what the friends Wifi network IP address range is available – they need to be able to configure this easily ,  What is the best way to acheive this ?
 
 

Question Tags: Wifi hostname
6 Answers
0 Vote Up Vote Down
Steve Mercer answered 4 years ago

What you are looking for is something called “Captive Portal”. There are a few libraries around you can use as is or modify to your needs. Take a look at AutoConnect and ESP32 WiFiManager.

0 Vote Up Vote Down
Hamish Low answered 4 years ago

Steve, That is a good suggestion. I have installed Autoconnect library now and run examples OK, but I want to use this in a project with websockets based on Rui’s examples using Asyncwebserver library, and Auto connect does not seem to work with it – do you have experience of this and a workaround ?
 

0 Vote Up Vote Down
Steve Mercer answered 4 years ago

I’m afraid I don’t. You may need to dissect one of the libraries to see how it works and then incorporate that into your project.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Hamish.
I see that you have access to our new course “Build Web Servers”.
The 2nd Edition comes with a project to build your own WiFi Manager. So, it allows you to introduce the network credentials with the ESP32 in access point mode. Then, it connects to the network in station mode.
I think it is exactly what you are looking for. It is Unit 4.3.
I hope this helps with your project.
Regards,
Sara

0 Vote Up Vote Down
Hamish Low answered 4 years ago

Sara,
Yes that is what I was looking for !.  Very helpful. Thank you
Hamish

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Great!
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question.
Regards,
Sara

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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.