Please provide more information about how you're "connecting" your computers. Are you attempting to access file shares, connect via Remote Desktop, what?
Note that normally you shouldn't have any issues between Win10 and Win11. However firewalls, network sharing settings and some other security features can cause this not to work. You should probably start by checking the following:
- Ensure both your machines are using the Private network profile.
- Ensure that file and printer sharing is enabled for the network profile.
- Ensure both machines are using the same Workgroup name.
- If you're using an MS account to log into both machines then you should be fine. If you're using local accounts then ensure that you are using the other machine's local account when attempting to connect to it.
- If using remote desktop then ensure the credentials you're using to connect are for the local user account on the other machine.