update endpoint if local ip changes