Fix get ip error.