You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've verified that I'm running youtube-dl version 2021.12.17
I've checked that all provided URLs are alive and playable in a browser
I've checked that all URLs and arguments with special characters are properly quoted or escaped
I've searched the bugtracker for similar bug reports including closed ones
I've read bugs section in FAQ
Verbose log
sudo youtube-dl -v --source-address 45.77.52.190 https://www.youtube.com/watch?v=T2hoQ9Hf8ws
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--source-address', '45.77.52.190', 'https://www.youtube.com/watch?v=T2hoQ9Hf8ws']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.10.12 (CPython) - Linux-5.15.0-94-generic-x86_64-with-glibc2.35
[debug] exe versions: ffmpeg 6.1-static, ffprobe 6.1-static
[debug] Proxy map: {}
[youtube] T2hoQ9Hf8ws: Downloading webpage
WARNING: Unable to download webpage: <urlopen error [Errno 99] Cannot assign requested address>
[youtube] T2hoQ9Hf8ws: Downloading API JSON
ERROR: Unable to download API page: <urlopen error [Errno 99] Cannot assign requested address> (caused by URLError(OSError(99, 'Cannot assign requested address')))
File "/usr/local/lib/python3.10/dist-packages/youtube_dl/extractor/common.py", line 634, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/lib/python3.10/dist-packages/youtube_dl/YoutubeDL.py", line 2288, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.10/dist-packages/youtube_dl/utils.py", line 2735, in https_open
return self.do_open(functools.partial(
File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
Description
I have tried to install latest version of youtube-dl and want to use specific IPV4 with the command. I hit the above command mentioned in verbose log but then also received error.
The text was updated successfully, but these errors were encountered:
The specified address has to be one that's actually defined in your system, not just a random a.b.c.d (apart from anything else, responses wouldn't be able to reach you if that weren't so). Additional considerations apply if the program is running in a container (eg, Docker network_mode: host, as I read).
You say that 45.77.52.190 is the static address of your system, so there must be some reason why you'd need to specify it in --source-address ....
If it's the WAN IP of your NAT-ed system, you would need port forwarding instead.
Checklist
Verbose log
sudo youtube-dl -v --source-address 45.77.52.190 https://www.youtube.com/watch?v=T2hoQ9Hf8ws
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--source-address', '45.77.52.190', 'https://www.youtube.com/watch?v=T2hoQ9Hf8ws']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.10.12 (CPython) - Linux-5.15.0-94-generic-x86_64-with-glibc2.35
[debug] exe versions: ffmpeg 6.1-static, ffprobe 6.1-static
[debug] Proxy map: {}
[youtube] T2hoQ9Hf8ws: Downloading webpage
WARNING: Unable to download webpage: <urlopen error [Errno 99] Cannot assign requested address>
[youtube] T2hoQ9Hf8ws: Downloading API JSON
ERROR: Unable to download API page: <urlopen error [Errno 99] Cannot assign requested address> (caused by URLError(OSError(99, 'Cannot assign requested address')))
File "/usr/local/lib/python3.10/dist-packages/youtube_dl/extractor/common.py", line 634, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/lib/python3.10/dist-packages/youtube_dl/YoutubeDL.py", line 2288, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.10/dist-packages/youtube_dl/utils.py", line 2735, in https_open
return self.do_open(functools.partial(
File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
Description
I have tried to install latest version of youtube-dl and want to use specific IPV4 with the command. I hit the above command mentioned in verbose log but then also received error.
The text was updated successfully, but these errors were encountered: