title: Redirecting TCP NetworkStream traffic in a .NET socket server
body: <p>I need to build a load balancer in C#.NET.  I'll need to route requests based upon some criteria to an array of back end .NET Tcp socket servers.</p>
  
  <p>What ways does .NET expose to redirect traffic?  Is there some way to dynamically do port forwarding (i.e. where the target host changes based on the request)?</p>
  
  <p>Any info is much appreciated.  Thanks.</p>
  
  <p>EDIT: I'm trying write a custom load balancer, so I should have said <em>programmatic</em> dynamic port forwarding.  I'm trying to redirect client requests to back end machines with a customer software/algorithm.</p>