Abusing the browser to scan private network boundaries.
How it works: Browsers restrict reading cross-origin data (CORS), but they typically still allow the network request to be sent (opaque responses). By measuring exactly how long a fetch() takes to fail, we can infer the port status.
Active Rejection vs. Timeout: If a local port is open/active, it quickly rejects the cross-origin request (or returns an opaque response). If the IP doesn't exist or a firewall drops the packet silently, the request hangs until our manual 1500ms timeout kills it.