update get ip address method