I wrote a small bash script, that transforms IP addresses into HEX format. The tool consists of 10 lines of bash script

if [ $# -lt 1 ]; then
 echo "IP-Address to HEX converter"
 echo "Usage:   \"`basename $0` IPADDRESS\""
 echo "  e.g.    `basename $0` = `$0`"
 printf '%02X' ${IP_ADDR//./ }; echo

I needed the tool to match IP-addresses to HEX files for PXE boot. Normally PXE boot fetches first the MAC-address, and then iteratively for the HEX representation of the IP address, with reducing the number of matching characters. Oracle documents the behavior very nicely for the IP address “"which matches “C000025B” and the imaginary MAC-address “88:99:AA:BB:CC:DD”. Then the PXE client probes for the following files (in the given order)


Now, with iphex I can easily convert the more used numerical representation of IP-addresses like into the IMHO not directly visible HEX representation.