Howdy,
I’ve got an interface with multiple IP addresses and I’m looking to
make HTTP requests from the non-primary IP.
How would I pull that off?
Cheers,
Eddie
Howdy,
I’ve got an interface with multiple IP addresses and I’m looking to
make HTTP requests from the non-primary IP.
How would I pull that off?
Cheers,
Eddie
I may well be wrong, but I don’t think you can set that programatically.
What you could do, though, is either make that virtual interface - I’m
assuming you’re using virtual interfaces to implement multiple IP
address on
an interface - the default route via the OS functions, or run a proxy on
that
virtual interface and set Net::HTTP to use that proxy.
waits to be corrected as I’m not too familiar with Net::HTTP
HTH,
Felix
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs