Windows to Mac Migration error

Just bought the M2 MacBook Air and was promoted to transfer data by migration. Downloaded the right Migration Assistant on my Windows laptop and put in the number that was showing on the Mac. After about 3 minutes it said that it was unable to connect to the Mac, suggesting that I should turn off any firewall that might be interfering with the process. Turned off McAfee on my Windows and tried again, same error. Is there any way to fix this or do I have to go the wired route for data transfer?