Implemented simple connection to a host and port