Microsoft KB Archive/268585

= How to Run IIS 5.0 and Windows Media Services with HTTP Streaming Enabled =

Article ID: 268585

Article Last Modified on 6/25/2004

-

APPLIES TO


 * Microsoft Windows Media Services 4.0
 * Microsoft Windows Media Services 4.1
 * Microsoft Internet Information Services 5.0

-



This article was previously published under Q268585



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SUMMARY
The Windows Media server components and Microsoft Internet Information Services (IIS) can coexist on a computer when you use their default values as follows:

The Windows Media Unicast service binds to port 1755.

The Windows Media Station service binds to port 7007.

IIS binds to port 80.

To stream content through HTTP, the Windows Media Unicast or Windows Media Station service must have an IP address available on port 80. To do this, you must configure IIS so that is does not automatically bind to port 80 on all IP addresses. With IIS version 4.0 or later, you can specify an IP address that IIS can use when it binds to port 80 to serve HTTP streams. The Windows Media Unicast or Windows Media Station service can then use another available IP address to stream ASF content through HTTP. To enable HTTP streaming for the Windows Media Unicast or Windows Media Station service, Web sites running under IIS 4.0 or later cannot be configured to use all unassigned IP addresses.



MORE INFORMATION
To use HTTP streaming when the Windows Media server components and IIS 5.0 are installed on the same computer, at least two IP addresses bound to your network card are required.  Assign an IP address to a Microsoft Internet Information Services (IIS) Web site by performing the following steps:  In the IIS Microsoft Management Console (MMC), select the Windows Media server computer. Right-click Default Web Site, and then click Properties. In the Default Web Site Properties dialog box, click the Web Site tab. On the Web Site tab, in the IP Address dialog box, select the IP address that you want this Web site to use. Repeat steps 2 through 4 for any additional Web sites that you run under IIS, including the administration Web site.</li></ol> </li> Disable socket pooling for the IIS Web site: <ol style="list-style-type: lower-alpha;"> At the command prompt, type cd \inetpub\adminscripts .</li>  At the \Inetpub\AdminScripts command prompt, type cscript adsutil.vbs set w3svc/disablesocketpooling true.

The command prompt returns the following: disablesocketpooling : (BOOLEAN) TRUE </li></ol> </li> Enable HTTP streaming for the Windows Media server components: <ol style="list-style-type: lower-alpha;"> In the Windows Media Administrator menu frame, click Server Properties.</li> On the Server Properties page, click the HTTP Streaming and Distribution tab.</li> On the HTTP Streaming and Distribution tab, select Enable HTTP distribution for either the Unicast or Station service (depending on your streaming configuration), and then click Apply.</li></ol>

NOTE: At this point, you are instructed to reboot the server for these changes to take effect. You will do this later.

</li> Edit the registry to make the Windows Media component services depend on the World Wide Web Publishing Service:WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

<ol style="list-style-type: lower-alpha;"> Start Registry Editor (Regedt32.exe).

NOTE: It is important that you use Regedt32.exe and not Regedit.exe.</li> Click to highlight the DependOnService value under the following key in the registry:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\nsunicast

</li> On the Edit menu, click Multi String..., type W3SVC at the end of the list of services, and then click OK.</li> Quit Registry Editor.</li></ol> </li> Restart your server.</li></ol>

Additional query words: netshow WMS IIS HTTP Streaming

Keywords: kbinfo KB268585

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.