fix the bug that ip is undefine
fix the bug that ip is undefine