fix the ping test using correct port (instead of always using port 80)