Connect GUI to server