Unlocking can often be performed either by connecting the phone to a PC or by submitting the unique IMEI number to a remote server.
For newer models like the Galaxy S24 or Z Fold 5, the traditional "client" method is often replaced by: fast gsm client 1.0.0.12 unlock