There are several things you can try to stop Windows 11 from asking for Network Credentials when trying to connect to computers on the same network:
1. Check the network sharing settings: Make sure that the network sharing settings are properly configured on both computers. To do this, go to Settings > Network & Internet > Sharing options and ensure that network discovery, file and printer sharing, and public folder sharing are turned on.
2. Use the same user account: Make sure that you are using the same user account on both computers. If the user account names and passwords don't match, Windows will ask for credentials.
3. Enable guest access: If the other computer is using a guest account or doesn't require a password, you can enable guest access on your computer. To do this, go to Settings > Network & Internet > Sharing options > All networks > Password-protected sharing and turn it off.
4. Add the credentials to the Credential Manager: You can add the credentials for the other computer to the Credential Manager so that you don't have to enter them every time. To do this, go to Control Panel > User Accounts > Credential Manager > Windows Credentials and click on "Add a Windows credential".
5. Disable password protected sharing: If you don't want to use network credentials at all, you can disable password protected sharing. To do this, go to Control Panel > Network and Sharing Center > Change advanced sharing settings > All networks > Password-protected sharing and turn it off. However, this is not recommended for security reasons.
Note: If you are still having trouble connecting to the other computer, you may need to check firewalls, IP addresses, or DNS settings.