Fix connectServer declaration