implemented connect client to host methods, plus changed order of arguments, so port to reply to is always last and optional