ESP8266 static ip, bug report

#define BLYNK_PRINT Serial    
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h> 

char ssid[] = "x";
char  pass[] = "x";
char auth[] = "x";

IPAddress server_ip (192, 168, 10, 229);

IPAddress arduino_ip (192,168,1,55);
IPAddress gateway_ip (192,168,1,1);
IPAddress subnet_mask(255, 255, 255,0);

void setup()
  WiFi.config(arduino_ip, gateway_ip, subnet_mask);
  WiFi.begin(ssid, pass);
  while (Blynk.connect(1000) == false) { 

void loop()

Blynk v0.5.4


[19958] Connecting to
[24959] Connecting to
[29960] Connecting to
[34961] Connecting to
[39962] Connecting to

Blynk v0.4.4


[5001] Connecting to
[5181] Ready (ping: 1ms).

And what’s the problem or bug? Are you trying to connect to your local server or cloud? As per your config you’re connecting to cloud… credentials from cloud or local server?

connect to cloud
my full code have http update code block and work fine on ip 192,168,1,55 but esp not connect to with blynk library 0.5.4

Can you Ping and try using that IP address instead?

change code to

Blynk.config(auth,"", 8442);

not connect again


[19894] Connecting to
[24895] Connecting to
[29896] Connecting to
[34897] Connecting to

same code with library v0.4.4 work ok

Port 8442 from the device is “obsolete” now… should be port 80 for Cloud (although 8080 should also work) or 443 for Cloud SSL.

There have also been some past issues when trying to connect from within Russia… no idea if those issues still exist

Probably just carry-over backward compatibility… but having such older library will cause other compatibility issues with the App… so should always be kept current.

change code to

Blynk.config(auth,"", 8442);

work ok


[19763] Connecting to
[24764] Connecting to
[24833] <[02|00|01|00] 701d6ad98d6926c0958046110de72242
[24891] >[00|00|01|00|C8]
[24891] Ready (ping: 57ms).
[24892] Free RAM: 48528

yes, connect from Russia

1 Like

by the way when i not use static ip work ok with library 0.5.4

//#define STATICIP 

  IPAddress arduino_ip(192,168,1,55);
  IPAddress gateway_ip(192,168,1,1);
  IPAddress subnet_mask(255,255,255,0);

 #ifdef STATICIP
   WiFi.config(arduino_ip, gateway_ip, subnet_mask);

Sounds like something needs to be adjusted in your router settings then. Not sure how it is affected by eh library except possibly due to the port routing. But again, best to keep up with the imes else you will run into other App compatibility issues.