in reply to IP address can't recognize by Net::Ping

By default, Net::Ping uses tcp, so you need to set $p->port_number , presumably to whatever port the database listens on.
  • Comment on Re: IP address can't recognize by Net::Ping