adding connect host
Merge pull request #8 from kienpham2000/newapi

adding connect host