only use ipPort if successfully connected