Pings an IP continuously and returns the result.