Nodemcu 8266 WiFi Manager connection IP

Hi,
I am testing the WiFi Manager script with an 8266 on link below which is supposed to advise the local IP of connection in the config window but it doesnt do this for me.
It connects fine but i still have to use the serial monitor to find out the IP, this is no good for general usage by people who dont have the IDE.
Has anyone else got this to work?
or is there a working alternative

https://www.martyncurrey.com/esp8266-and-the-arduino-ide-part-5-adding-wifimanager/

I deleted all old WiFi Manager libraries first.

Any help appreciated

is it not always 192.168.4.1?

The config page is but I am talking about the IP that is assigned after config is setup and connection is made. Its displayed in the serial monitor but thats no help to someone who doesnt have a serial monitor.

why do you need that IP? you can reserve it on router.

Reserve what?
You dont know what to reserve....

My 8266 will generate a html page, the reason i need this is when the product is given out to users who simply plug it into power and then configure wifi settings with their phone, they need to be able to know what IP to browse to after connection is established.

so not for 'users' but most home router have a wen page where you reserve a specific IP address for a MAC address. then DHCP always uses this IP.

for users you should setup MDNS in the sketch so they can use a hostname.

Sorry, but I have no idea what that means....

So where are you suggesting the assigned IP should be displayed? Does your project have a display device (LCD, etc) connected to the ESP8266? You could display it on there. Otherwise, I'm not sure what you want.

The IP address is assigned by the router that the ESP WiFi connects to, it's not controlled by the sketch in your ESP. It possible (via the router's configuration web page) to assign a the same IP address to the ESP based on its MAC address.

see this page, ESP32 WiFiManager - Easy WiFi PRovisioning or ESP32 Useful Wi-Fi Library Functions

i believe one of them explains how code can come up as an standalone Access Point when credentials to a loco WiFi router or other IP info can be provided when the code is in a new environment

OK, yeah got it, thanks.
Doesnt really help for a plug & play user, thats the goal here.

Yes, I just cant get it to work...

So, asking again, what is you proposal on where the ESP8266 should display it's newly-acquired IP address? What display device does your project have if the Serial port isn't a good option? If you have no display device, how do you expect the ESP8266 to communicate this info to the user?

I am not reinventing the wheel.
I am using the scripts on ESP8266 and the Arduino IDE Part 5: adding wifiManager – Martyn Currey
This is supposed to display the IP on the config portal page (192.168.1.4), I just cant get it to work.

  • can't connect to the Wifi server?
  • can't connect to another IP?
  • can't come up as an independent Access Point?

All of that works.
Just the ip field is blank when you connect back to the config portal.

what is the config portal?
what do you mean by "connect back to"?

do you mean there's no assigned IP address after WiFi.status() indicates WL_CONNECTED?

The process with WiFi Manager is:

  1. The 8266 generates a config portal on 192.168.1.4
    I can connect to this.
  2. I enter my network details on this page.
  3. The 8266 then connects to my network and is assigned an IP, i can see this IP in the serial monitor.
  4. With the new WiFi Manager we then do a double reset to disconnect from the network forcing the 8266 to turn back on the config portal where it is supposed to display the IP that was assigned.
    It does but when I reconnect back to 192.168.1.4 it just displays all blank box where this IP should be.

I just want to know if other people have this issue with this?
Is it just me?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.