Support IPv6 in the client and server.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>