connect to local server