Retrieve IP address of AirPrint printer
You can use ippfind command that finds services registered with a DNS server or available through local devices. Its primary purpose is to find IPP printers and show their URIs, show their current status, or run commands.
Then you get local address of printer (Internet Printing Protocol (IPP, RFC 2911)):
then ping local address
and here we go
our printer has 192.168.0.108