Since IPv6 is generally preferred, as this can be seen with
"strace dict test"
[...]
socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP) = 3
connect(3, {sa_family=AF_INET6, sin6_port=htons(2628), sin6_flowinfo=htonl(0), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_scope_id=0}, 28) = -1 ECONNREFUSED (Connection refused)
close(3) = 0
socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(2628), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
write(3, "client \"dict 1.13.1/rf on Linux "..., 70) = 70
[...]
dictd should listen to IPv6 ::1, which would make the first connect()
succeed.