upgrade get ip address method