Fix apple challenge response across platforms

Handle IP address being reversed on MIPS platform.