Establish connection with host. Closes #3