connect with real server, all functions completed