Complex numbers are very convenient to use in the analysis of oscillatory processes, they allow to write a phase and amplitude into one object. Sometimes they are just convenient to use to store pairs of interrelated numbers.
and yes. Storage of IP addresses in quaternion.