Skip to content

Curl backend needs a way to force ipv4/ipv6 #18253

Description

@chcore

Expected behavior of the wanted feature

The curl backend needs a way to force ipv4/ipv6.

Sometimes, youtube blocks a host's ipv6 address but allows its ipv4 address, or vice versa. We can force yt-dlp to use ipv4 or ipv6 with --ytdl-raw-options and get the stream URLs, but it does not look like there's a way to force a specific stack for the retrieval.

I'm currenty getting 403 errors because while yt-dlp gets the URLs correctly (ipv4), mpv tries to play the content using ipv6.

Alternative behavior of the wanted feature

Some method of forcing ipv4 or ipv6. Maybe even a --curl-raw-options argument.

Log File

No response

Sample Files

No response

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions