Fix security bug where a user could forge its own IP address when looking for new devices