set 'netloc' in client