-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Client.connect fails with static IP Address #2182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Edited: Old info. |
I saw this post but i need the config to work before begin all the idia is to tell the WiFi class not to wait for ip address from the router . Calling WiFi.config() before WiFi.begin() forces begin() to configure the WiFi shield with the network addresses specified in config(). But i will try for knowing if its works . |
I have tested static ip config. config before begin works.
|
So i have tryd with the dns thing , not working same -5 look up error . In green is the input to .config in red , this is wan right ? we are not connecting from output global internet its ok that its DHCP there ? |
@stavBodik
If the router runs local dns cache or dns forwarder,
else
WAN is connected to ISP using DHCP(ip : 5.xx.xx.184), it's not related to local LAN. |
Change the order of this: WiFi.config(ip, gateway, subnet); for this: This is solved here: #128 |
chaeplin Amazing option 2 works !!! seems like i had connection problem (rst-16) was disconnected , Thanks !!!! Now with my (dutyCycle==0.00721) && (weak_up +connection+sendingTime) ~=0.2S |
WiFi.status() != WL_CONNECTED fails for static IP in V2.3.0 but works in V2.2.0 test code
Results V2.3.0 BUT fing, shows 10.1.1.222 is on the network Results after rolling back to V2.2.0 Connected to FCC-Wfi Also on V2.2.0 also works calling config() BEFORE calling begin (as it should be) |
Closing as resolved. |
For anyone having this issue who ends up here in the future, as ridiculous as it sounds, slowing your upload speed to 57600 baud fixed this issue for me completely. I couldn't get it working on 2.3.0 or 2.2.0 at all beforehand, now both work flawlessly. |
Hardware
Hardware: ?ESP-12E?
Core Version: ? How do i find it (^^) ? ?
Description
Connecting with WiFiClient.connect fails when connected to router with static ip address,
When connected trough DHCP works fine .
Port 80 forward configured .
Settings in IDE
Module: ?Generic ESP8266 Module?
Flash Size: ?512K (64K SPIFFS)?
CPU Frequency: ?80Mhz?
Flash Mode: ?dio?
Flash Frequency: ?40Mhz?
Upload Using: ?SERIAL?
Reset Method: ?nodemcu?
Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: