Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind to specific IP #721

Closed
pola opened this issue Mar 2, 2013 · 11 comments
Closed

Bind to specific IP #721

pola opened this issue Mar 2, 2013 · 11 comments

Comments

@pola
Copy link

@pola pola commented Mar 2, 2013

Hi. How can I bind youtube-dl so that it uses a specific IP/interface, instead of the default one, while downloading?

@phihag
Copy link
Contributor

@phihag phihag commented Mar 3, 2013

Sorry, there is no option for that at the moment. You're welcome to contribute one though 😉 . Note that for many IEs, the extracted information is just valid for the specified external IP address, so this should affect both IEs and the actual download.

@jcarlosgarciasegovia
Copy link
Contributor

@jcarlosgarciasegovia jcarlosgarciasegovia commented Mar 6, 2013

I do not see the need to add that option to youtube-dl
There are 3rd party solutions available:
http://superuser.com/questions/241178/how-to-use-different-network-interfaces-for-different-processes
Will that work for you?

@FiloSottile
Copy link
Collaborator

@FiloSottile FiloSottile commented Mar 6, 2013

I would use external tooling here, too.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 10, 2015

Starting from youtube-dl 2015.01.10.1, you can make use of the --source-address option. See our FAQ if you need help updating.

@codaman
Copy link

@codaman codaman commented Nov 19, 2015

has anybody tried --source-adress option ? i cant use it

youtube-dl.exe --source-adsress [IP] -g [url] not working

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 19, 2015

@codaman open a new issue with all necessary information.

@codaman
Copy link

@codaman codaman commented Nov 19, 2015

may be it is not a problem may be its my fault. youtube-dl.exe --source-adsress [IP] -g [url] is correct ?

@phihag
Copy link
Contributor

@phihag phihag commented Nov 19, 2015

@codaman How do you expect us to diagnose the problem when you don't show us even the error message? In any case, to answer your question, yes, I have tried the --source-address option after writing it. Also note that you seem to mistype it, it is --source-address, not --source-adsress.

@codaman
Copy link

@codaman codaman commented Nov 20, 2015

youtube-dl --source-address 195.46.137.11 -g https://www.youtube.com/watch?v=R-qlQe8R2Cs

i'm getting this error

ERROR: Unable to download webpage: <urlopen error [Errno 49] Can't assign requested address> (caused by URLError(error(49, "Can't assign requested address"),))

@phihag
Copy link
Contributor

@phihag phihag commented Nov 20, 2015

@codaman Please open a new issue. Don't forget to include other helpful debugging information, for example the output of ipconfig on Windows or ip a on Linux.

@codaman
Copy link

@codaman codaman commented Nov 20, 2015

@phihag thank you for advice. i've created a new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.