Fix for failing TCP test in environment without IPv6 support.