function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lwc applicationlwc application 

Unable to authprize an org

HI

I am trying to authorize an org from Visual Studio but I am ending up with this below error

0:30:00.332 sfdx force:auth:web:login --setdefaultdevhubusername
ERROR running force:auth:web:login:  Cannot start the OAuth redirect server on port PortInUseAction. 
Try this: 
Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
00:30:11.364 sfdx force:auth:web:login --setdefaultdevhubusername ended with exit code 1


Can someone help me on this.

Thanks in advance.
AnudeepAnudeep (Salesforce Developers) 
Hi,

If you are using a VPN, can you try authorizing the org without VPN?

You can kill the process running at the specified port by following 

https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_troubleshoot_cancel_auth.htm
 
Anudeep
Yarlagadda SanjyothiYarlagadda Sanjyothi
I was getting this error on and on. I tried everything i could but it wasnt resolved. I had to uninstall entire set up and start from scratch again and i was able to login
andy perezandy perez
Actually, I am very much confused that how does sharing work in Salesforce? 123movies.llc (https://www.techsite.io/u/Alberto.Bellomo/" target="_blank)