3

The Setup:

We have 2 Servers. They are on different subnets, but can still communicate with each other.

The Issue:

Server 1 used to query Server 2's Services with a ServiceController.Status call successfully, until our IT Staff tightened the firewall between the two subnets (we lost RDP access to Server 2 and ServiceController.Status calls from Server 1 to Server 2 started to fail).

IT has relaxed the firewall a bit (so RDP to Server 2 now works), but our ServiceController.Status calls still fail (The error is: Cannot open Service Control Manager on Computer).

The Question:

How does ServiceProcess.ServiceController perform it's tasks? Does it use a special TCP Port when doing it's work?

I am suspecting that the firewall is preventing remote access to the Service Controller on Server 2, so I'd like to tell our IT staff what ports we need opened.

I've looked at the MSDN page, but I haven't been able to find out what I need.

4

1 回答 1

4

查看这篇 TechNet 文章:http ://technet.microsoft.com/en-us/library/cc738291(v=ws.10).aspx#w2k3tr_rpc_how_vfae 。它包含一个协议表以及它们可以被 RPC 使用的相关套接字端口,.NET ServiceController 类依赖于这些端口。您的 IT 人员可能兴高采烈地关闭了这些端口中的一个或多个(有些比其他端口更重要,具体取决于有多少其他选项可用),从而导致 RPC 无法运行。

于 2012-11-26T18:31:55.840 回答