updating local ip function