See what Shodan sees at your home IP, then keep UPnP switched off

My take: A port that answers at home answers everyone, and Shodan writes it down. Check your IP, then reach your things through a VPN, not an open port.
What to know
- Shodan calls itself the first search engine for Internet-connected devices. It crawls the whole Internet every week and indexes whatever answers, from fridges to power plants, its home page says.
- InternetDB, its free lookup, shows what Shodan saw on one IP address: open ports, the software behind them, known vulnerabilities. No account and no key, free for non-commercial use, refreshed once a week. Add your public IP after
https://internetdb.shodan.io/in a browser. "No information available" is the answer you want. - UPnP lets a device on your network open a port to the Internet by itself, without asking you. Ubiquiti recommends keeping it off on UniFi gateways unless you need it, even for online games, and reaching a device at home through a VPN rather than UPnP (UniFi help).
Spotted on @ninon.ia_officiel, in French. Her reel raises the question of exposed cameras; this is how to check yours.
What changes
Find your public IP (your router's app shows it) and look it up. Each port listed is a service that answers anyone: find the device behind it and remove the port forward in your router. Then turn UPnP off; on UniFi, it sits in the Internet section of the Network app. Two limits: the data can be a week old, and if your provider gave you a new IP, the result may describe whoever had it before.
To reach your NAS or cameras from outside, a VPN such as Tailscale does it without opening a single port: the Vaultwarden guide shows the setup.
Source: Ubiquiti, “UniFi Gateway - UPnP”, December 4, 2024
Drafted with Claude, Anthropic's AI, from my take. Reviewed and owned by me.