WeMos D1 Mini connection issue

So I am using current version of Arduino Ide 1.8.42.0 on a Windows 10 pro computer. I have tried to run a program that is on Random Nerd website that seems to work for others but I keep getting waiting for WiFi to connect on my serial monitor. I tried to run a script that shows the IP address , got a lot of trash but at the end of its line I did see the IP as 192.168.4.1.I then went to cmd prompt and pinged the IP , and request would time out. The sketch I used was . Can someone please help me with this?

#include <ESP8266WiFi.h>
WiFiServer server(80 ); //Initialize the server on Port 80
void setup() {
WiFi.mode(WIFI_AP); //Our ESP8266-12E is an AccessPoint
WiFi.softAP("Hello_IoT ", "aaaaaaaa"); // Provide the (SSID, password); .
server.begin (); // Start the HTTP Server
Serial.begin(115200);
IPAddress HTTPS_ServerIP = WiFi.softAPIP();
Serial.print("Server IP is: ");
Serial.println(HTTPS_ServerIP);
}
void loop(){}

this sketch starts WIFI in AP Mode.

try ESP8266Wifi / WifiClient

from the Arduino IDE.

Thank you
I must be doing something wrong on this end.