connact using hostname