Pass host parameter properly to connect