change method get localhost ip addr