Repository: youtube-dl
Issue: source-address is not working as expected.
Labels: question

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

My server's main ip address is for example **37.111.222.333**. I can ping it from outside network.
I have 16 additional IP addresses i.e **178.111.222.316 to 178.111.222.332**. I assigned them to my network via netplan in Ubuntu 20.04. I can ping all my IPs from outside network, I can remotely connect with my server from any of above IPs. 
I am using following command to download youtube videos.

`youtube-dl -4 --source-address 178.111.222.316 --call-home -f best -o "/root/some/path/%(title)s.%(ext)s" --verbose --user-agent 'Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0' 2cKsDpnWm8k >>log.txt 2>&1`

But in log file, I am watching very strange behavior. Please see below, it is still using main IP address. See **Public IP address** part and in link see **ip=**

```
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-4', '--source-address', '178.111.222.316', '--call-home', '-f', 'best', '-o', '/root/some/path/%(title)s.%(ext)s', '--ver
bose', '--user-agent', 'Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0', '2cKsDpnWm8k']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.6.9 (CPython) - Linux-5.4.0-77-generic-x86_64-with-Ubuntu-20.04-focal
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8
[debug] Proxy map: {}
[debug] Public IP address: 37.111.222.333
[youtube] 2cKsDpnWm8k: Downloading webpage
[debug] Invoking downloader on 'https://r5---sn-aigzrn76.googlevideo.com/videoplayback?expire=1629611468&ei=bJEhYczCCtiox_APjPSf8A4&ip=37.111.222.333&id=
o-AC7yeu4-4sjAI3kde5S_pemxE8F28om3Pup2rU_2l3UJ&itag=22&source=youtube&requiressl=yes&mh=eB&mm=31%2C29&mn=sn-aigzrn76%2Csn-aigl6ney&ms=au%2Crdu&mv=m&mvi
=5&pl=21&initcwndbps=267500&vprv=1&mime=video%2Fmp4&ns=dY34TUGm1xJ7jYGFAzH3TvQG&cnr=14&ratebypass=yes&dur=2783.770&lmt=1618730542570502&mt=1629589492&f
vip=5&fexp=24001373%2C24007246&c=WEB&txp=5532434&n=BfzKJPpV4BIofyHhA&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Ccn
r%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgNEhBnUwSu_74gNBBbn6Vg7GGI3PtwlKBF2HJpwUR-toCIDo-WfREltyx3iguFUCXUGC8sCbQ3zn9QLjZgI8_Fb0m&lsparams=mh%2Cmm%2C
mn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgTJz5ybAHTlW-1t2YnYMhGWvjYxhUG3qfkUUuQlbeg28CIQDBYGHbrgGyz4_fPGXme9YNQAlLHHRZ3xY8lpHmg4l4zQ%3D%3D
'
[download] Destination: /root/some/path/some_file_name.mp4
```

Any help, is there anything wrong with my command? or if something is wrong with my network setting?