Currently I am able to connect my ESP8266 which is set to 192.168.4.1 (wifimanager.autoconnect) which works perfectly from my webbrowser.
This works fine locally (within my wifi network), but I want to connect it remotely.
Earlier I have connected remotely through a webserver by hardcoding domin name "const char* host = "myserver.com"; "
What should I do so that it works both locally and remotely.
Please suggest.