Usually they put the ESP8266 in Access Point mode ... you can go to a simple administration page which allows you to configure a new AP name and encryption key. You even have the option to ...