Never gets connected to the local server

So below is my code which i was going to use for a door lock in my house , below is the code,

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>
#include <EEPROM.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "dfe6363f9e624390ad666d8048f71c6b";

// Your WiFi credentials.
// Set password to "" for open networks.
/*char ssid[] = "Freedom";
char pass[] = "pajik@1234";*/

void setup()
  // Debug console
  WiFiManager wifiManager;
  Blynk.begin(auth,WiFi.SSID().c_str(),WiFi.psk().c_str(), IPAddress(xx,xxx,xx,xx), 8080);

void loop()

This code uplaods successfully and it does connects to my wifi as well , but it says it keeps on connecting to my local server but never connects. anyone knows the asnwer for this issue

Are you thinking that it’s connected to your Wi-Fi because it says “connected…” in your serial monitor?

There seems to be quite a bit of WiFiManager code missing from the sketch to me.


this is what outcomes from my serial monitor ,

Connecting to Freedom
[76880] Connected to WiFi
[76880] IP:
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.0 on NodeMCU

[77010] Connecting to
[82011] Connecting to
[87012] Connecting to

Is this what it actually says or did you mask it?? You know no one can access your LAN IP, so safe even to broadcast, as you just did with the NodeMCU’s IP :wink:

Anyhow, it is saying the correct IP? And what port are you using?


I think you need to set some stuff up still :smile:

No , that’s my google cloud IP address that’s why i used those signs , anyways the port i used in the google cloud is 9443 , for the hardware i used 8080 … And the IP address which is node mcu is trying to connect is correct as well.

Ah, OK… better to say something upfront as it literally looks like a sample setting :slight_smile:

I don’t use cloud services for my Local Server, so I may not be much help… but can you ping your Google cloud, er, Local Server IP?

The Phone app connects just fine to port 9443 ?

if you web to “http://(” you get forwared to ?

What happens if you try “http://(”


It did work . thanks for the time folks. I have not enabled the 8443 port in my google cloud server.


1 Like

Hi koshala123,

I am facing the same issue, my hardware is replying “connecting to ip” but its not connecting.

May I know after you enabling the 8443 port in google cloud, you hardware connected to google cloud?

A post was split to a new topic: Not able to connect to Local Server