My point was that I cannot reproduce your inconsistent results. Your 3 methods return "does not ping" on an ip that I can't access, and they all return "pings" on an ip that I can access.
By the way, qw vs. qq will make no difference in this case; I'm not sure why the other monk recommended that change.