allow selecting source IP #118

Closed
opened 2026-02-20 22:25:53 -05:00 by deekerman · 3 comments
Owner

Originally created by @Worper1997 on GitHub (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

Originally created by @Worper1997 on GitHub (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
deekerman 2026-02-20 22:25:53 -05:00
  • closed this issue
  • added the
    request
    label
Author
Owner

@phihag commented on GitHub (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.

@phihag commented on GitHub (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.
Author
Owner

@Worper1997 commented on GitHub (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.

@Worper1997 commented on GitHub (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.
Author
Owner

@phihag commented on GitHub (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 commented on GitHub (Jan 23, 2015): In current versions of youtube-dl (see [our FAQ](https://yt-dl.org/update) if you need help updating) this possible via the `--source-address` option.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#118
No description provided.