Combine wifi connect and server connect.