What's the total number of "r"s in:
Q: SFDX: Authorize an org error: listen EACCES: permission denied 127.0.0.1:1717 I have been using DX for quite some time. Authorizing an org either through command palette or with a command in terminal had never been a problem [Command is like this: sfdx force:auth:web:login --setalias mySandbox --instanceurl https://test.salesforce.com ]
Today while trying to authorize a sandbox, I encountered the following error message which seems to be from node.js:
{ Error: listen EACCES: permission denied 127.0.0.1:1717
at Server.setupListenHandle [as _listen2] (net.js:1253:19)
at listenInCluster (net.js:1318:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1451:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:61:10)
code: 'EACCES',
errno: 'EACCES',
syscall: 'listen',
address: '127.0.0.1',
port: 1717 }
{ Error: listen EACCES: permission denied 127.0.0.1:1717
at Server.setupListenHandle [as _listen2] (net.js:1253:19)
at listenInCluster (net.js:1318:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1451:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:61:10)
code: 'EACCES',
errno: 'EACCES',
syscall: 'listen',
address: '127.0.0.1',
port: 1717 }
{ Error: listen EACCES: permission denied 127.0.0.1:1717
at Server.setupListenHandle [as _listen2] (net.js:1253:19)
at listenInCluster (net.js:1318:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1451:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:61:10)
code: 'EACCES',
errno: 'EACCES',
syscall: 'listen',
address: '127.0.0.1',
port: 1717 }
Recently I have done several changes to my Desktop and I do not know if it has something to do with them:

*

*O.S. updated to Windows 10 [Version 10.0.18363 Build 18363]

*Installed Docker Desktop

*Installed Gitlab-runner

If not, how can I solve this problem?
Thank you.

A: Administered Port Exclusions are the reason.
In the Salesforce CLI log, you also see:
error: listen EACCES: permission denied 127.0.0.1:1717

Run this in a Cmd Prompt:
> netsh interface ipv4 show excludedportrange protocol=tcp

Protocol tcp Port Exclusion Ranges

Start Port    End Port
----------    --------
        80          80
       443         443
       808         808
      1068        1167
      1168        1267
      1268        1367
      1473        1572
      1573        1672
      1673        1772
      5357        5357
     11821       11920
     11921       12020
     12263       12362
     12363       12462
     12463       12562
     12563       12662
     16013       16013
     20807       20807
     22221       22221
     22223       22223
     37408       37408
     50000       50059     *

* - Administered port exclusions.

You can see port 1717 is in a blocked range (1673 to 1772)
I changed mine to 1771 by ading this line to sfdx-project.json:
"oauthLocalPort": "1771",

and it worked OK - sort of.
In the Browser, I still got the error:

But, when I looked, I saw it was still trying to use pot 1717.
I edited the URL in the browser to the new Port I had selected (1771 in my case - yours may be different) and it worked - the callback to VS Code completed and I was logged in to SF and could down load my code.
See https://stackoverflow.com/questions/58216537/what-is-administered-port-exclusions-in-windows-10 for more about 'Administered Port Exclusions'

A: This was my solution, https://superuser.com/questions/1579346/many-excludedportranges-how-to-delete-hyper-v-is-disabled
I had to stop the winnat service with the following command via an elevated administrator command line:
net stop winnat

The reserved port range shows up via the netsh command but the specific 1717 port isn't seen as open by netstat

A: Recreating the SFDX project (overwrite the original folder) resolves the issue for me. It's wired..

A: There must be a process running on port 1717,
Option 1:
You can Kill the Job Running on the port 
Windows:
netstat -ano | findstr :yourPortNumber taskkill /PID typeyourPIDhere /F
More about the command: https://stackoverflow.com/questions/39632667/how-to-kill-the-process-currently-using-a-port-on-localhost-in-windows
Mac: sudo lsof -i :1717 kill -9 PID
Option 2:
Change the Port in the sfdx-project.json file by including "oauthLocalPort": portNumber(any available port) in the JSON
to find open ports on 
windows: Run resmon.exe, switch to the network and listening ports use a port not listed.
**Mac:**simply use netstat -ap tcp

A: Try to run SFDX Auth from CMD as admin
sfdx force:auth:web:login --setalias [alias]  --instanceurl https://login.salesforce.com --setdefaultusername

user
In the text, there are one hundred and ninety-two "r"s.
assistant