set connect hostname to localhost