Closed
Description
Hi,
Without setting a fixed address, the ESP8266 can get the IP address via DHCP, so the hello webserver example works normally. But if I add the static IP configuration, then the browser can not find the server (The serial monitor shows the static IP address correctly)
The code worked correctly until about November 2018 (it was the last time I tested it).
Were there any radical changes in the library?
Arduino IDE 1.8.9
ESP8266 2.5.0 (library installed using the Board Manager)
Windows 10 x64
NodeMCU Lolin V3
I will downgrade the library version to try to find a version that works.
Ref.: https://arduino-esp8266.readthedocs.io/en/2.5.0/esp8266wifi/station-class.html#config
Basic code:
WiFi.begin(ssid, password);
IPAddress ip(192,168,1,74);
IPAddress gateway(192,168,1,1);
IPAddress subnet(255,255,255,0);
IPAddress dns(8,8,8,8);
WiFi.config(ip, gateway, subnet, dns);
Thank you.
Metadata
Metadata
Assignees
Labels
No labels