Connect remotely to IIS7 using ServerManager.OpenRemote

I am trying to connect to IIS7 + using ServerManager.OpenRemote ("[IP address]"). I am connecting with HyperV Host Machine to my client virtual machines. I keep getting the following error: "System.Runtime.InteropServices.COMException: the RPC server is unavailable. (Exception from HRESULT: 0x800706BA). I ​​can connect to the IIS client using the IIS Manager (server) connected through the management service (client). Because I can’t connect using the server manager, I assume that the management service is using HTTP, and ServerManager is using COM to connect in. Can someone direct me in the right direction as to how I allow this remote connection?

EDIT: I tested the DCOM connection between two computers using netmon. I have the following descriptions / on the client machine "DCOM: RequestGetClassObject Request" and "DCOM: RemoteGetClassObject Response". The response also contains "ORPCFNULL" in the description, which tells me that the client cannot find the requested COM object. Can anyone check?

+6
source share
1 answer

I have found my solution. Added notes to help others.

By default, Windows Firewall blocks port 135 (used to establish communication with this connection). As soon as I opened this port, I was still having problems.

After a handshake, a dynamic port between 1024-65535 is used for communication. Windows Firewall will also block this, if not allowed.

Since my operations were purely internal, I created a permission rule for all 10.1.10.0/24 IP addresses for this port range.

You can also configure this DCOM to have a static port of your choice and set a firewall rule for that port.

Further information here: http://mvolo.com/connecting-to-iis-70-configuration-remotely-with-microsoftwebadministration/

+2
source

Source: https://habr.com/ru/post/918953/


All Articles