Fix client ip getter.