Hello Laith, welcome to the Microsoft community, my name is Luiz Cruz, an independent consultant and I would be happy to help you.
I understand that you are having problems connecting to your new PC;
What exactly is the PC model and manufacturer?
Initially I recommend that you go to the manufacturer's website and update the network drivers;
Make sure you are up to date with the latest version of Windows 11;
Press Windows key + i and go to Windows Update;
Click Check for updates and do ALL pending updates;
Perform a clean boot;
Press together the keys: Ctrl + Shift + Esc to access the task manager;
Click on start and disable all programs that start with Windows;
run a disk cleanup;
Press Windows key + R and type: cleanmgr press Enter;
Click on clean system files and wait for the files to load;
Select all files and click ok to delete them;
Do a network reset;
Press Windows key + i and access Network and Internet;
Click Advanced Network Settings;
Click Network reset;
Click Reset now;
Restart the PC and check if the problem still persists;
Hope this helps, see you soon!