title: Is NetNamedPipeBinding binding guaranteed to work only on the same machine?
body: <p>I've created a Windows Service that uses WCF for communications to it. The service should be used be called only from the same machine. If I can guarantee that there's <strong>no</strong> way to communicate with it from another machine, I can consider it <em>secured</em>. </p>
  
  <p>Since I'm using communications on a single machine, I opted to used <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.netnamedpipebinding%28v=VS.100%29.aspx?appId=Dev10IDEF1&amp;amp;amp;amp;amp;amp;amp;l=EN-US&amp;amp;amp;amp;amp;amp;amp;k=k%28%22HTTP://SCHEMAS.MICROSOFT.COM/.NETCONFIGURATION/V2.0%23CONFIGURATION/SYSTEM.SERVICEMODEL/BEHAVIORS%22%29;k%28%22HTTP://SCHEMAS.MICROSOFT.COM/.NETCONFIGURATION/V2.0%23BEHAVIORS%22%29;k%28%22HTTP://SCHEMAS.MICROSOFT.COM/.NETCONFIGURATION/V2.0%23CONFIGURATION/SYSTEM.SERVICEMODEL%22%29;k%28%22HTTP://SCHEMAS.MICROSOFT.COM/.NETCONFIGURATION/V2.0%23SYSTEM.SERVICEMODEL%22%29;k%28VS.XMLEDITOR%29;k%28SOLUTIONITEMSPROJECT%29;k%28SOLUTIONITEMSPROJECT%29;k%28TargetFrameworkMoniker-%22.NETFRAMEWORK&amp;amp;amp;amp;amp;amp;amp;k=VERSION=V4.0%22%29&amp;amp;amp;amp;amp;amp;amp;rd=true" rel="noreferrer">NetNamedPipeBinding</a>. This bindings documentation says it's <em>Optimized for on-machine communications</em>, but does not give any guarantees.</p>
  
  <p><strong>My questions is, does NetNamedPipeBinding provide on-machine-only guarantees?</strong> If not what binding does, or how would you go implementing a custom bindings that does provide such guarantees?</p>
  
  <p>Thanks,<br>
  Asaf</p>