title: How to set my IP address programmatically?
body: <p>How can I set my IP address programmatically?</p>
  
  <p>My application is checking it, using code from <a href="http://www.delphitricks.com/source-code/internet/get_your_own_ip_address.html" rel="nofollow">DelphiTricks</a> (although I am not sure if the code from <a href="http://delphi.about.com/od/networking/l/aa103100a.htm" rel="nofollow">About.com</a> might not be better)</p>
  
  <p>I want to be able to set the address programmatically for testing purposes. And (I don't know if this is important), I want to be able to do so even I am not attached to any network (on a laptop, on a train).</p>