change IP determine way