Share via


<net.tcp>

Specifies configuration settings for the NET.TCP Port Sharing Service, which allows multiple processes to share the same TCP port.

<system.serviceModel.activation>

  <net.tcp>

                                    
                                    <configuration>
                                
                                    
                                       <system.serviceModel.activation>
                                
                                    
                                           <net.tcp listenBacklog="Integer"
                                
                                    
                                              maxPendingAccepts="Integer"
                                
                                    
                                              maxPendingConnections="Integer"
                                
                                    
                                              receiveTimeout="TimeSpan"
                                
                                    
                                              teredoEnabled="Boolean">
                                
                                    
                                              <allowAccounts>
                                
                                    
                                                 // LocalSystem account
                                
                                    
                                                 <add securityIdentifier="S-1-5-18"/>
                                
                                    
                                                 // LocalService account
                                
                                    
                                                 <add securityIdentifier="S-1-5-19"/>
                                
                                    
                                                 // Administrators account
                                
                                    
                                                 <add securityIdentifier="S-1-5-20"/>
                                
                                    
                                                 // Network Service account
                                
                                    
                                                 <add securityIdentifier="S-1-5-32-544" />
                                
                                    
                                                 // IIS_IUSRS account (Vista only)
                                
                                    
                                                 <add securityIdentifier="S-1-5-32-568"/>
                                
                                    
                                               </allowAccounts>
                                
                                    
                                           </net.tcp>
                                
                                    
                                    </configuration>
                                

Type

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

listenBacklog

An integer that specifies the maximum outstanding connections that are accepted from the shared connection, but are not yet dispatched to Windows Communication Foundation (WCF) services. The default is 10.

maxPendingAccepts

An integer that specifies the maximum outstanding concurrent accepting threads on the listening endpoint for the sharing service. The default is 2.

MaxPendingConnections

An integer that specifies the maximum outstanding connections that are accepted from the shared connection, but are not yet dispatched to WCF services. The default is 10.

receiveTimeout

A Timespan that specifies the timeout for reading the framing data and performing connection dispatching from the underlining connections. The default is "00:00:10".

teredoEnabled

A Boolean value that indicates whether the port sharing service uses Microsoft Teredo service to listen on TCP ports on behalf of WCF services. The default is false.

Child Elements

Element Description

<allowAccounts>

A collection of configuration elements that contain a securityIdentifier attribute to specify user accounts for processes that host WCF services, and are granted connection access to the sharing service.

Parent Elements

Element Description

<system.serviceModel.activation>

Contains configuration settings for the listener process SMSvcHost.exe.

See Also

Reference

NetTcpSection

Other Resources

Net.TCP Port Sharing

Footer image

Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.