title: How do I make an outgoing socket to a SPECIFIC network interface?
body: <p>I have a server with two different network interfaces, each with a different IP address. How can I create a socket so it'll go out a specific IP address?</p>
  
  <p>I'd prefer a python example, but the question is language agnostic, so shoot away.</p>
  
  <p>EDIT: Please don't give me "You can't" as an answer. I mean, it is a computer. I can do anything I like to it, for example - I can programatically disable the one interface I don't want on the fly. I'm looking for something prettier.</p>