try to connect server, but not sure whether there are bugs.