This happen with the WIFI Direct option is selected in the setup - use the TCP/IP port instead and it works fine with Windows 10 or Windows 11