Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
--source-address option bug #4678
Comments
|
Thank you for the report. Unfortunately, I cannot reproduce this issue. It works fine for me, even when using the precise OS and Python version that you are using. To be able to diagnose this problem, we therefore need more information:
|
|
1.Source address seems to be in effect (as there is no " cannot assign requested address error").Moreover i use bind-ip feature in other commandline tools and there is no issue so its very unlikely that its related to server youtube-dl -Cv --source-address 209.55.52.7 You want me to provide a url to youtube-dl while given these output.Also note that i modified the IPs in report for privacy reasons.If you need true server IPs you can find me on skype |
|
In a private debugging session, we found out that this is a firewall/network problem unrelated to youtube-dl. |
|
What was the exact firewall issue and fix ? I have somewhat the same issue. |
|
@bubbleguuum That's extremely unlikely. You may be affected by #4696 though. Without the required information for bug reports, we can't really say though. |
|
Looks like my Ubuntu install doesn't allow binding to sources addresses: curl --interface 209.55.52.7 yt-dl.org/ip But youtube-dl doesn't complain and silently fail (real public ip redacted and replaced with 1.2.3.4): ./youtube-dl -g -Cv --source-address 209.55.52.7 https://www.youtube.com/watch?v=beszG5A7LoA |
|
Hmmm it looks like I wrongly thought you could specify any ip for --source-address. But this is limited to any valid address of the machine on which youtube-dl runs. Which when you think about it, makes sense. |
youtube-dl -g -vC --source-address 209.55.52.7 https://www.youtube.com/watch?v=duKL2dAJN6I[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-g', '-vC', '--source-address', '209.55.52.7', 'https://www.youtube.com/watch?v=duKL2dAJN6I']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.01.10.2
[debug] Python version 2.6.6 - Linux-2.6.32-504.3.3.el6.x86_64-x86_64-with-centos-6.6-Final
[debug] exe versions: none
[debug] Proxy map: {}
[debug] Public IP address: 216.193.172.196
https://r4---sn-a5m7zne6.googlevideo.com/videoplayback?upn=m3IbFnNpT5A&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmime%2Cmm%2Cms%2Cmv%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&requiressl=yes&key=yt5&itag=22&initcwndbps=2651250&mime=video%2Fmp4&fexp=900718%2C912133%2C913446%2C922243%2C927622%2C932404%2C941004%2C943917%2C947209%2C947218%2C947225%2C948124%2C950500%2C952302%2C952605%2C952901%2C955301%2C957103%2C957105%2C957201%2C957400%2C959701&dur=772.295&ms=au&id=o-AM7atmFgCrJpvx-mUugAJg8oCootzt83QJuhfnGoT6RF&mv=m&mt=1420949294&sver=3&signature=BDC585BAE73BD051CEF02E20FE902F0DF1D39F30.7ECD8D6415969A3E9448FDB155F994E82E6B9C3D&expire=1420970930&ipbits=0&ratebypass=yes&ip=216.193.172.196&source=youtube&mm=31
The ip address specified in the --source-address (i.e 209.55.52.7 ) should have been used to generate the url.Instead my main server ip is being used (216.193.172.196).