HTTPS server connection error in esp8285 (wifi_ap_sta) mode.

Hi i am working first time in esp8285 board..

ESP8285 is HTTPS server in wifi_ap_sta mode. My PC is connected to wifi_ap of esp8285 and connected wifi_sta of esp8285 to my Router, now if i try to do request from my pc to the IP address (192.168.4.1) of WIFI_AP then connection is establishing fine and giving response back.

But I am getting connection error, when i disconnect esp8285(wifi_sta mode) from Router. not able to understand what the issue is...

Plz help me to solve this.

Your question is not super clear, but what i got is that when you connect to the "ESP as AP" you go to 192.168.4.1 and you can connect but if you connect via the wifi to "ESP as STA" you can not find it there.. well no that is true, on you wifi-network it will have a different IP address. which as a default is dynamic and it will be assigned by your router, or can be declared static form inside the ESP. Once the ESP is connected to the Router, the IP-address will be available for printing usingWiFi.localIP()