Fix remote IP issue