If host_ip is nil or 0.0.0.0, only do the special port check on Windows hosts, because non-Windows hosts can test 0.0.0.0 directly.
If host_ip is nil or 0.0.0.0, only do the special port check on Windows hosts, because non-Windows hosts can test 0.0.0.0 directly.