Less public ip lookups

This is for #1577 -- only look up your public IP if there's a network change.