• 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

softAP and default IP address

Q&A Forum › Category: ESP32 › softAP and default IP address
0 Vote Up Vote Down
Philip Hunt asked 2 months ago

Apologies in advance if this is covered somewhere – I couldn’t find it.
I have the AI Thinker CAM board (ESP32) and wanted to run the CameraWebServer_Access_point code for my book. I get a strange thing. When It boots (compiles and loads ok) I get
Camera ready! Use ‘http://0.0.0.0″ to connect – I was expecting a C class ! I tried adding a direct call to WiFi.softAPIP() to get the string (in case the localIP() call somehow was in error – same result .
I also added a WiFi.mode(WIFI_AP) call before the softAP() call (just in case) no change
What makes this address? (after all there’s no DNS)  and what am I missing to get a valid SoftAP address?
thanks

Question Tags: ESP32-Cam, softAP, wifi
2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 months ago

Hi.
What is exactly the code you’e trying to run? Is it the one from the eBook?
Did you change anything?
 
Have you tried ignoring the 0.0.0.0 IP address and accessing the 192.168.4.1 IP nonetheless?
 
Regards,
Sara

0 Vote Up Vote Down
Philip Hunt answered 2 months ago

Its the CameraWebServer_Acces_ Point.ino code – I did not modify it at first, but after seeing 0.0.0.0 (and testing it) I tried adding WiFi.mode(WIFI_AP) in front of the softAP call to see if that helped and 192.168.4.1 did not connect… it didn’t. Anyway I think it was an issue with RESET (the esp32CAM has a crude RC on the switch – so always hold it for a short while (not just pulse it)…and then it worked 192.168.4.1 worked.
Q. where is that default address from? – where is DNS started (I looked into the app_httpd.cpp code and didn’t see this) – thanks for our help
Phil

PS – the images come over but streaming rarely works and the stills come across 50% of the time – is that normal?

 

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.