Skip to content

Inconsistent results with probe-all-ips if the port number is set in the URL #2346

Closed

Description

@NicoBrun

httpx version:

Latest version: 1.7.4

Current Behavior:

-probe-all-ips or -pa do not work if the given URL has a port number at the end. I've tested https:// + 443, http:// + 80, and https:// + 8443 (https://www.cloudflare.com:8443 for example), and the bug is reproductible in all these cases:

$ httpx -u https://www.example.com:443 -probe-all-ips -silent
https://www.example.com [104.18.26.120]

$ httpx -u https://www.example.com -probe-all-ips -silent
https://www.example.com [104.18.26.120]
https://www.example.com [2606:4700::6812:1a78]
https://www.example.com [2606:4700::6812:1b78]
https://www.example.com [104.18.27.120]

Expected Behavior:

The two commands above should return the same result.

Steps To Reproduce:

Run the command on an host that has multiple A or AAAA entries and an open HTTPS service on 443.

httpx -u https://www.example.com:443 -probe-all-ips -silent

Anything else:

For completeness, the issue is not present if the -ports parameter is used instead:

$ httpx -u https://www.example.com -probe-all-ips -silent -ports 80
http://www.example.com [2606:4700::6812:1b78]
http://www.example.com [2606:4700::6812:1a78]
http://www.example.com [104.18.27.120]
http://www.example.com [104.18.26.120]
$ httpx -u https://www.example.com -probe-all-ips -silent -ports 443
https://www.example.com [104.18.26.120]
https://www.example.com [104.18.27.120]
https://www.example.com [2606:4700::6812:1a78]
https://www.example.com [2606:4700::6812:1b78]

Activity

  1. added
    Type: Bug
    on Dec 28, 2025
  2. coderabbitai commented on Dec 28, 2025

    @coderabbitai

    📝 CodeRabbit Plan Mode

    Generate an implementation plan and prompts that you can use with your favorite coding agent.

    • Create Plan
    Examples

    🔗 Similar Issues

    Related Issues

    👤 Suggested Assignees

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: Bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions