This works all the time for me…
char auth[] = "xxxxxxxxxx";
char ssid[] = "xxxxxxxxxx";
char pass[] = "xxxxxxxxxx";
char server[] = "xxx.xxx.xxx.xxx"; // IP for your Local Server or pinged IP for Blynk's Cloud server
// char server[] = "blynk-cloud.com"; // URL for Blynk's Cloud Server
int port = 8080; // Port for TCP or 9443 for SSL
void setup() {
// ----- Using Blynk.Begin() -----
// Blynk.begin(auth, ssid, pass, server, port);
// ----- Using Blynk.config() -----
WiFi.begin(ssid, pass);
Blynk.config(auth, server, port);
Blynk.connect();
}