SOLVED: Change the listening port on Windows Admin Center v2 because of error SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions.

When you try and start Windows Admin Center v2 you might find that the "Windows Admin Center" service starts and then stops and the following error is logged in the event viewer.

Exception Info: System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions.

This maybe because there is another application running on port 443 (the default Windows Admin Center port).

You can check this by running the PowerShell cmdlet and note the process identifer (in my case this is running the Hyper-V virtual machine replication service).

Get-NetTCPConnection -LocalPort 443|SELECT LocalAddress, OwningProcess


Edit the configuration file
C:\Program Files\WindowsAdminCenter\Service\appsettings.json

And edit the following two locations


And...



Setting these values to an available port (in this example 8443) and restart the service.



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