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

allow selecting source IP #174

Closed
Worper1997 opened this issue Sep 24, 2011 · 3 comments
Closed

allow selecting source IP #174

Worper1997 opened this issue Sep 24, 2011 · 3 comments
Labels

Comments

@Worper1997
Copy link

@Worper1997 Worper1997 commented Sep 24, 2011

Hi

Is it possible to select the source IP through an option? My linux server has multiple IP addresses. Curl and Wget have options which allow me to download a file using any of my IPs but it seems you're using neither of them.
if possible please add a source IP like this:

--interface eth0:1
or --interface 192.168.1.5

Thanks

@phihag
Copy link
Contributor

@phihag phihag commented Sep 24, 2011

Should be possible, although the code required / usefulness ratio is probably large, so I won't prioritize this. Aside from a patch for rtmpdump (a program we call for RTMP streams), this needs to be set just for HTTP connections.

Patches for this feature are welcome - I'll look into it when I have the time.

@Worper1997
Copy link
Author

@Worper1997 Worper1997 commented Sep 24, 2011

Hi
Thanks for the answer. I'm not a python programmer(Only PHP) so I really can't help.
All I could understand is you use urllib2 and maybe this could help:
http://stackoverflow.com/questions/1150332/source-interface-with-python-and-urllib2
I'll try to get the url using the -g and try to see if the url works with another IP.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 23, 2015

In current versions of youtube-dl (see our FAQ if you need help updating) this possible via the --source-address option.

@phihag phihag closed this Jan 23, 2015
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
2 participants
You can’t perform that action at this time.