Hello Viktar,
To get the port number you can use the "Browse IIS Web Sites and Virtual Directories" wizard. When you configure the wizard on one of the dialogs there is combo which will allow you to select "web site bindings". This is the data that will be retrieved from the site and it contains the port number.
This information will be stored in a new property, called "IISBrowseSelectedValue". You can use this property to get the default web sites's port and add the exception in the
firewall page.
You can read more in the
following article.
Regards,
Mihai
FOLLOW US
Get the latest news in Application Packaging