How to set which IP to use for a HTTP request?

wget --bind-address=192.0.2.116 http://file from man wget


If it's not wget, then there's this nifty little wrapper that you use LD_PRELOAD to insert before you run any command.

You can use that to specifically bind, say, a browser to a VLAN interface (speaking from experience).