ESP8266 Wasn’t online yet

can someone help me for my fyp, i newbie and want to learn something new, i want make window notification by using reed switch and esp8266 but my blynk say “Wasn’t online yet”. iI I using mobile hospot for connection on my esp8266. I hope anyone can help me, this is part of my fyp.

this is code that im copy from the internet

//Viral Science www.youtube.com/c/viralscience  www.viralsciencecreativity.com
//Blynk Door Security Notification System

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
BlynkTimer timer;
char auth[] = "1ABXCH8eh9ec2s_vRfWIuZjwnMWQKUng"; //Enter the authentication code sent by Blynk to your Email
char ssid[] = "AndroidAP"; //Enter your WIFI SSID
char pass[] = "ahmadbuhairi"; //Enter your WIFI Password
int flag=0;



void notifyOnButtonPress()
{
  int isButtonPressed = digitalRead(D1);
  if (isButtonPressed==1 && flag==0) {
    Serial.println("Someone Opened the door");
    Blynk.notify("Alert : Someone Opened the door");
    flag=1;
  }
  else if (isButtonPressed==0)
  {
    flag=0;
  }
}
void setup()
{
Serial.begin(74880);
Blynk.begin(auth, ssid, pass);
pinMode(D1,INPUT_PULLUP);
timer.setInterval(16000L,notifyOnButtonPress); 
}
void loop()
{
  Blynk.run();
  timer.run();
} 

please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly. Triple backticks look like this: ```

im sorry about that, i has edit it

I guess you’re using Blynk Legacy… what library do you use. For Blynk Legacy you’ve to use 0.6.1

@bazzio , yes i use blynk library 0.6.1 , but i use old blynk for my phone that i download from my playstore

The esp module should be listed under connected devices in your mobile hotspot. If not check your ssid and pass. And also make sure your ISP is not blocking the traffic on port 9443.

@Madhukesh

my ssid and pass has been checked and there are right buy when i check port, it say

Problem! I could not see your service on 27.125.242.149 on port (9443 ).
Reason: Connection timed out.

What does your serial monitor say when you reboot the device?

Pete.