Properly parse Windows ipv4 and ipv6 IP addresses

Fixes #5391

Fixes #5377
Remove extra newline
Merge pull request #5547 from UtahDave/win_fix_ipv6

Win fix ipv6