Change the WebDeploy Port or why do I need port 8172?

image1825-439x194_thumb.png

 

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“

3. “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”.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

About the author

Written by

Learn more about our team.

Comment on this post

Recent Posts

  • image1929-570x143_thumb.png
    Create and validate own Json-Web-Tokens (JWTs)

    If you are interested in web authentication you probably have heard about JSON Web tokens (JWT). What is a JWT? Maybe I’m not using the correct security termination but however: JWTs are used to exchange claims between two systems. For example: You want to log on to a service (like Facebook, Twitter, etc.) and want […]

  • Micro-Optimization: how to shrink or „embed“ pictures

      I’m currently working on the “CodeInside Dashboard” and since the page structure isn’t that difficult it should be possible to fulfill all of Google Pagespeed or Yahoos YSlow recommendations. One of the rules was to optimize the 4 PNGs that are embedded on the page.   Before – without optimization: Below you can see […]

  • image1979-570x194.png
    Move to Windows Azure – VMs, Word Press Migration, DNS changes

    Since mid January this blogs runs on a WordPress installation in an Azure VM. Because I always thought that the subject is quite complicated this blogpost offers a view behind the scenes. Why this move? So far this blog (both German and English Version) runs on a hoster somewhere in Germany. The main problem with this […]

  • Windows Azure Active Directory – CRUD for users and groups

      Windows Azure Active Directory? If you are not informed about the subject I recommend you to have a look on this Azure Info site. Which resources are there? The Azure AD contains the following entities: - Users - Groups - Contacts - Roles Access to the directory or on the “directory graph” Although the […]

  • Introduction into SignalR 2.0 & Azure Website Websockets

      SignalR is an Open Source Framework for Real Time WebApps. The main problem with Real-Time in the web is the canal between Browser and Server. If you never had to deal with SignalR and this problem before here is a brief introduction:   The problem Traditionally the browser initiates the request to the server […]

Support us