Wait until the real public IP address is available, added set_file_permissions method