Blackbox exporter probe always fails

I’m new to alloy, trying to understand how components are wired together. I built a pipeline with one blackbox exporter and several prometheus scrape components which all scrape it passing different parameters. In this way, the probes always fail for any target except for 127.0.0.1. What am I doing wrong here?

prometheus.exporter.blackbox "default" {
  config_file = "blackbox.yml"
}

prometheus.scrape "blackbox" {
  targets = [{"__address__" = "localhost:12345"},]
  params = {
    "module" = ["icmp"],
    "target" = ["1.1.1.1"],
  }
  metrics_path = "/api/v0/component/prometheus.exporter.blackbox.default/probe"
  forward_to = [prometheus.remote_write.local.receiver]
}

prometheus.remote_write "local" {
  endpoint {
    url = "http://localhost:9090/api/v1/write"
  }
}