Hello there,
An incorrectly-set Advanced Sharing setting is one of the most common causes of this error. Ideally, your PC should be allowed to manage homegroup connections. You can also use the Advanced Sharing settings page to disable password-protected sharing, which will allow you to share files without needing to log in.
Use credential manager in Windows to remember the username and password for your Drive if it doesnt remember it automatically.
Go to Start ⇒ Control Panel ⇒ User Accounts and Family Safety ⇒ Credential Manager
On the right hand side, right below where it says "Windows Credentials" Select "Add a Windows Credential".
Enter your Server name or IP in the first box.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–