SOLVED: PowerShell Remoting (WinRM) only listening on certain and not all IP addresses

We've recently had an issue trying to connect to PowerShell remoting on a certain machine.

Connections resulted in the following issue:

Connecting to remote server machine name failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooting Help topic.

The firewalls (both Windows Firewall and external firewalls) were configured correctly and running winrm enumerate winrm/config/listener showed the listener was correctly configured.


However, running the following command doesn't show it listening on all IP addresses, only on one address.

Get-NetTCPConnection -LocalPort 5985 -State Listen


The solution was to run the following command which shows that the HTTP IP listen setting is configured which limits the addresses HTTP will listen on.

netsh http show iplisten


The other possibility is that an IP filter is configured - this can be checked with the following command

winrm get winrm/config


While you're here why not check out our IT documentation tool?


Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

When using the "Send to compressed (zipped) folder" context menu item nothing happens