Skip to content

[Bug]: Proxy - 'Refusing to connect to non-global address for host' #1055

Description

@ppittle

Prerequisites

  • I have searched existing issues and discussions to ensure this bug hasn't been reported before
  • If the download itself fails, I have tested the same URL and options with yt-dlp directly (see the note below) — or this bug is not download-related

Bug Description

Downloading any url now results in an error:

ERROR:ytdl:Download error for Test: ERROR: [youtube] xxxxxxxxx: Unable to download API page: 
SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: Refusing to connect to non-global address for host '10.1.xx.xxx' (caused by TransportError("SocksHTTPSConnection(host='www.youtube.com', port=443): 
Failed to establish a new connection: Refusing to connect to non-global address for host '10.1.xx.xxx"))

The last release included 482381d which modified proxy behavior.

yt-dlp Direct Test Results

curl -I -x socks5://10.1.xx.xxxx:1080 https://www.youtube.com/watch?v=FLH1aARTpMg

Environment & Configuration

Docker compose:

- YTDL_OPTIONS={"writeinfojson":true, "proxy":"socks5://10.1.xx.xxx:1080"}

Additional Context

The most recent release included 482381d which modified how proxies work.

This is likely related, as my configuration worked on previous versions.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions