update the script of get ip