Named Pipes is specific to Microsoft and if the Cleint and Server are on the
same machine, MicroSoft uses Named Pipes. TCP/IP has more overheads
but is the best when client/servers are distributed.
i hope this link can reply your question.
The following links are useful in this regard
BOL : Namedpipes Vs Tcp/Ip sockets