how to get the port 5986 listen on the server?

Matt 101 Reputation points
2023-08-07T13:45:21.76+00:00

Hi all,

We need to connect to https://server1:5986/wsman but the the port 5986 is not listen on the server1. We only see the port 5985. How could make https://server1:5986/wsman to work?

Thank you for the help!

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2023-08-08T08:29:24.44+00:00

    Hi @Matt

    Port 5986 is used for WSMan HTTPS, which is a secure version of WSMan protocol. If the port 5986 is not open on the server1, you can try to open it by following the steps below:

    1. Open the Windows Firewall with Advanced Security.
    2. In the left pane, click on Inbound Rules.
    3. In the right pane, click on New Rule.
    4. In the New Inbound Rule Wizard, select Port and click Next.
    5. Select TCP and enter 5986 in the Specific local ports field, then click Next.
    6. Select Allow the connection and click Next.
    7. Select the network type when the rule should apply and click Next.
    8. Give the rule a name and click Finish.

    Hope the information is helpful.

    Best Regards,

    Hania Lian

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

    1 person found this answer helpful.
    0 comments No comments

  2. Anonymous
    2023-08-07T13:52:49.9766667+00:00

    You could follow along here.

    https://learn.microsoft.com/en-us/troubleshoot/windows-client/system-management-components/configure-winrm-for-https

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  3. Anonymous
    2023-08-07T14:48:44.8+00:00

    More info here as well.

    https://woshub.com/powershell-remoting-over-https/

    --please don't forget to upvote and Accept as answer if the reply is helpful--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.