Choose IP Adress for Process to use on launch [duplicate]
- by user1436026
This question already has an answer here:
How to set which IP to use for a HTTP request?
2 answers
Say my server has the following IP addresses:
123.456.78.0
123.467.79.1
123.456.77.1
123.456.68.0
etc...
Say I want to launch a process, say wget from the command line.
Normally, I would do something like this:
wget http://www.google.com/
Except that I would like to choose the IP address that my server uses to make this request. Is there a way to use wget or launch another command with a choice of one of my own IP addresses, like the following pseudo command:
with-ip 123.456.68.0 wget http://www.google.com/