title: Acquire an IP address from dhcp server for my C# app - Like Virtual Machines
body: <p>I'm developing an application of multiple socket connections (a TCP alarm watcher). Currently, in order to mock the alarms, i made small applications running on a VM Machine (that is, because the Vm have a different IP) that simulate the alarm endpoints.</p>
  
  <p>What I want to do is to mock the alarms in the same machine I'm running my "server" (i.e. the first application), except that I want these mock alarms to have a different IP. I don't want my mocks running with the same IP that the first App (e.g. The server is 192.168.1.4; I want a mock to be 192.168.1.10, other being 192.168.1.11, etc.; all living in the same machine, just the way VM's can do that).</p>
  
  <p>Virtual Machines in 'bridged network' mode can get a different IP from the DHCP server (that's where I get this idea). So, I'm a little dissoriented on where to investigate to complete the task, my question is: </p>
  
  <p>How Can I make , programaticaly, my mock applications to get its own IP addresses via DHCP?
  (or, Is it impossible, given the .NET Framework?)</p>
  
  <p>Haj.-</p>