update client script to handle IPv6