Disabling Windows Defender permanently on Windows 11 is not recommended, and somewhat challenging. However, you can temporarily turn off real-time protection if it's blocking you from doing something.
Toggle the Windows Defender Firewall switch to the Off position. Do the same for Domain network and Private network as well. You will see the changed status as follows. Block all incoming ...