Heads-Up for X-Plat Devs re Slow Debug Transmissions

I code on a MacBook but often target Windows. My setup for many many years has been to run the Xojo IDE on the Mac and use the Remote Debugger on Windows, with both of them connected to my office LAN via wifi. Today it suddenly started taking ages (like 5-10 minutes) for Xojo to transmit the debug tarball over to Windows. It wasn’t just Xojo - I tried a manual file transfer and it was also bog slow. I rebooted the PC, then shut down and restarted the PC - no change. Both machines had fast internet, so it wasn’t a wifi issue, it was the ability to transfer files between them.

I explained the situation to Claude (AI) and its first suggestion was to run Powershell as Admin and enter

Get-SmbServerConfiguration

I showed Claude the output and it immediately spotted the parameter

RejectUnencryptedAccess : True

and suggested I disable that option with

Set-SmbServerConfiguration -RejectUnencryptedAccess $false -Force

The problem immediately went away! Apparently a recent Windows update had enabled that option - I guess Microsoft doesn’t think anyone actually transfers files between MacsOS and Windows machines over a LAN :roll_eyes:

Thanks, Claude! I would never have known about that setting or where to find it.

1 Like

So… remote debugging doesn’t use SMB. it uses its own transmission protocol, so I don’t see how this could have caused slow transmission time.

Now… if your Mac was frantically trying to negotiate a connection while you were trying to remote debug, that could cause some slowness, but I wouldn’t expect it to be oppressive.

That makes sense, so there’s still some mystery. Neither machine seemed to be doing anything frantically - Activity Monitor and Task Manager looked normal and they were both responsive. But file transfers were definitely glacial.

File transfers I can see. IIRC Apple uses a version of Samba 3 that’s usually years old. On my systems, I usually disable samba encryption on my Macs since that’s where the problem actually lies.

I don’t remember where I found this on the internet but here’s a PDF of the instructions I follow:

https://www.dropbox.com/scl/fi/b7gsskuqhim2szka0r919/How-to-Fix-Slow-SMB-File-Transfers-on-OS-X-10.11.5-and-macOS-Sierra-dpron.pdf?rlkey=r25s88olv2rzkh1m001dskjtt&st=d5u5tfhb&dl=1

2 Likes