work except ipv6 but code is ok (so I don't understand)