Connect app to server when creating secret key