fixing host part. establishing socket