question

GreyInk-2725 avatar image
0 Votes"
GreyInk-2725 asked CandyLuo-MSFT commented

mmc wants strange tcp ports

I tried to connect from Windows Server 2016 to Windows Server 2019 via mmc to see remote Taskscheduler and diskmgmt.
Connection failed
And Get-NetTCPConnection -remoteaddress <ip> shown something like this

for taskscheduler
104135-image.png


for diskmgmt
104171-image.png


Never seen mmc to use such ports before
So what are they used for and why mmc started to use them?

windows-server
image.png (43.7 KiB)
image.png (41.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CandyLuo-MSFT avatar image
0 Votes"
CandyLuo-MSFT answered CandyLuo-MSFT commented

Hi,

I also get the right ports range in my lab:

104542-image.png

Try to restart machine and connect via MMC again, see whether the issue still occur.

Best Regards,
Candy


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (21.6 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

hm, I've restarted it already a couple of times. The issure still occures.

0 Votes 0 ·

If there is still no progress, I would also suggest you contact Microsoft Customer Support and Services where more in-depth investigation can be done so that you would get a more satisfying explanation and solution to this issue.

Here is the link:

https://support.microsoft.com/en-us/gp/customer-service-phone-numbers

0 Votes 0 ·
LeonLaude avatar image
0 Votes"
LeonLaude answered LeonLaude commented

Hi @GreyInk-2725,

Edit: Remote management via the Microsoft Management Console (MMC) and other legacy management tools use DCOM ports, by default DCOM assigns ports dynamically from the TCP port range of 1024 through 65535 on older systems, on newer 49152 to 65535.

When it's dynamic it could be anything in between and therefore the port used might be different sometimes.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)


Best regards,
Leon

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

That's not true. They say that since 2008r2 default port range for DCOM is 49152-65535.
So I don't understand why my Windows Server 2016 start using them now

0 Votes 0 ·

Yes correct I clarified my answer, I did some testing in my lab environments and I do get proper ports within the supposed port ranges on Windows Server 2016 & 2019 servers, so your issue seems rather peculiar.

0 Votes 0 ·