02 June 2013 CI Team

 

If you use WebDeploy on a server operation system you would usually use Port 8172. But what is this Port for and can I change it?

Hint: For installing the WebDeploy I recommend this Blogpost.

Port 8172 = IIS Management Service Default Port

The Port 8172 is the default port of the IIS Management Service which is only available for server operation systems (so don’t worry if you can’t find it in IIS at Windows 7/8).

image

You can change the settings on GUI (or Powershell) while the service is not running.

That’s basically it.

Background-Information: WebDeploy & Web Management Service Handler

I’ve already mentioned that the Web Management Service only runs on Server operations systems – so how does the WebDeploy work on my local IIS?

I found a good summary about WebDeploys “Deployment Models” on the Blog of Richard Szalay:

  1. Web Management Service (WMSvc) handler This is the preferred method for IIS 7+ / Windows Server 2008+ and supports non-administrator deployments. It piggybacks on the WMSvc (ie. remote IIS management) by registering a custom handler (http://server:8172/msdeploy.axd). Making use of WMSvc also means that this method is not available to Windows client versions (including 7 and 8), as WMSvc is not available on those platforms. At the command line, this method is specified on the dest provider as “,computerName=http://server:8172/msdeploy.axd?site=iis-site-name”

  2. Web Deploy Agent Service This is the only choice for IIS6 / Server 2003, is not installed by default, and requires the deployment user to be an administrator. At the comment line, this method is specified as “,computerName=server“

  1. “On Demand” Agent Service (temp agent) This choice installs the agent service temporarily for a single deployment. Useful when you have administrator credentials but aren’t able to remotely install the handler or agent service. At the command line, this method is specified as“,computerName=server,tempAgent=true”

WebDeploy on the server works always in cooperation with the Web Management Service – if you change the Port of the WMSvc dealer you change the Port for the WebDeploy.

 

Background-Information: Where are those settings saved?

I found some of those settings (like for example the Port) in the Registry:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WebManagement\Server

image

Other settings are in the administration.config (C:\Windows\System32\inetsrv\config)

image

TL; DR:

Go to Management Service with IIS Manager on a server and change the Port. WebDeploy uses the Management Service for the Deployment – also the Management Service is responsible for the “Remote-administration”.