To enable Nearby sharing on Windows 11, Go to Settings->System. Then Click the Nearby sharing tab. You will see an option to allow Nearby sharing, and choose the My Devices Only option. It provides file sharing between systems using your Microsoft account.