Win fix ipv6

Fixes #5391

Fixes #5377