Move the command that fetches the public ip to the configuration file