Error: Unable find Teensy Loader - Windows KB5127936 issue

acornacorn

New member
Moderator edit: workaround available on msg #32.



Hello, I am attempting to use the Arduino IDE with a Teensy 4.1 and I am getting an error every time I try to upload anything to the Teensy.

This is the error I am getting:

Opening Teensy Loader...
Unable find Teensy Loader. (p) Is the Teensy Loader application running?
Is a firewall (eg, ZoneAlarm) blocking localhost communication?
quitexit status 1

Compilation error: exit status 1

I have not downloaded any VPNs or anything of the sort since the last time it was working, and I checked my Windows Defender and arduino ide.exe is allowed publicly. I have also reset my laptop, tried the example blink code, and it is still not working. The teensy window is also opening.

Another person in my class who also uses a Windows laptop is having the exact problem as mine.
 
Last edited by a moderator:
Is the IDE 1.x or 2.x?

It may have been blocked on install 'for your protection'.

Perhaps it was an install failure and remove and reinstall will correct.
 
Me too!
This started only a few days ago - and everything had been fine until then!
Windows 11, Arduino 2.3.10, Teensyduino 1.6.2 - all reinstalled without success. No VPN involved. Windows Defender temporarily turned OFF.

I can run with Tycommand, but teensy_post_compile/teensy produces this error 99% of the time, both on Verify and on Upload.
Teensy.exe does successfully launch, and opens the port listener on 3149 - but Arduino IDE apparently cannot connect to it.
I have spent hours working through all threads - and just cannot find an explanation!

(I was just researching a thought that on my PC, 'Localhost' resolves to the IP6 address '::1:' instead of 127.0.0.1, and that the IDE wants an IP4 binding. So I have been trying "netsh interface ipv6 set prefixpolicy ::1/128 precedence=5 label=0 store=active" but with only occasional success)
 
I face exactly the same problem. Started a few days ago. I use windows 11 and Arduino IDE 2.3.10. Actually tested it using Visual Studio Code + PlatformIO. Same issue :-( .. hit and miss, 1 out of 50 attempts to upload code seems to work. Re-installed Arduino IDE and teensyloader. Issue remains
 
I have encountered the same problem, in fact on all 4 computers that I own. All are Windows 11 with Arduino IDE 2.3.10 with Teensyduino from 1.59 up to the latest 1.62. I have reinstalled so many times both the IDE and Teensyduino but always the same problem, 'Unable to find TeensyLoader', which always appears before the loader actual pops up. Using Google AI I managed to confirm that the code does get compiled but the connection to the Teensyloader was not made. All the tests I was asked to do were all well above what I understand.
Did get a few success's by using 'Export Binary File' option from Sketch menu then loading the hex file manually into Teensyloader before then pressing the button on the teensy where it can be uploaded.
Not a solution and it isn't 100%.
 
Please, everyone seeing this problem, start by clearly saying which operating system version you have, and if the computer has any special networking or security software setup. These details matter!

Now to quickly explain what's going on, when you click Upload in Arduino IDE, a program called "teensy_post_compile" is run. It uses localhost (127.0.0.1) communication to tell Teensy Loader the location of your freshly compiled code, because Teensy Loader does the actual work of uploading your code. It needs to know the file Arduino IDE just created. This error "Unable find Teensy Loader. (p)" means "teensy_post_compile" tried to connect to Teensy Loader, but couldn't.

You've already said you can see the small Teensy Loader window. That's good. The first step is to click Help > Verbose Info. In that window, you're looking for a line that says "Listening for remote control". It looks similar on all operating systems. This screenshot is from Linux.

1793821830335.png


If Teensy Loader says it's listening, then the next step is to try to figure out what's blocking the connection. Remember, this is 127.0.0.1 which happens entirely local to your computer. No internet access is used.

How exactly to look into the issue is probably different on each operating system. I don't use Windows much, but I believe it's a command called "netstat".
 
Oh my, looks like Microsoft may have published a buggy update that breaks localhost. :(


People in that conversation are reporting uninstall of KB5066835 fixes recent localhost communication problem.

I'm not a Windows expert. Maybe people who know it better might chime in. But I see this on that conversation. Maybe it can help?

1793826181421.png
 
So they broke localhost a little over a year ago, rolled it back, then last week pushed out a new preview KB with what appears to be the same issue.
The same KB is also causing issues with some USB Audio 1.0 devices, so good riddance to it.
 
I meet the same yesterday, both arduino 2.0 and 1.8 can not work with loader,
then i removed KB5127936, KB5127694 - the windows patch,
it can fix the problem.
Removing these 2 (and postponing future updates) worked for me as well.
I couldn't actually remove the ones listed as causing the problem, presumably because of dependencies. But it now works.
I thought "move fast and break things" was a Zuckerberg slogan, not MS :)
 
Confirm that the issue is only with KB5127936. With the other (KB5127694 .NET Framework Security)
Arduino IDE 2.3.10 and Teensy Loader 1.62 work well.
By the way, I will install Linux in another partition... ;-)
Thanks again.
 
Same here. KB5127936 installed on 30/10/26 caused the issue on my system. Remove the update and the loader now works. IDE 2.3.10 and Loader 1.62 (tried 1.60, same issue also resolved removing KB update).
 
Just popping on to say I have the same issue, Windows 11. Latest.

Setting "teensy_post_compile.exe" to run as administrator in compatibility seemed to allow the connection after the recent windows update.

Ok scrap that, I must of got lucky as I can't get it to run again.

If teensy.exe is open, and I try to either telnet/putty into 127.0.0.1:3149 I do get a response "Teensy Loader 1.53" - So it does seem to be something with teensy_post_compile.exe no longer wanting to connect. Spamming the teensy_post_compile.exe command a few times did get me one connection, but didn't complete.


Code:
Opening Teensy Loader...
Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
Sending command: dir:C:\****
Sending command: file:***.hex
location = usb:0/140000/0/C
LoadLibrary cfgmgr32 ok
LoadLibrary ntdll ok
...
usb scan found 1 devices
Unable find Teensy Loader.  (r)  Is the Teensy Loader application running?
 
Last edited:
I'm looking further into this problem. I updated my Windows 11 laptop, and indeed I'm able to reproduce the problem.

Teensy utilities are calling WIN32 GetTcpTable() to check whether Teensy Loader is listening, because on many versions of Windows there is a substantial delay for connect() to return with failure for localhost TCP ports. Why Windows would take so long for something that can immediately be returned as an error, I have no idea. MacOS and Linux return connect() failure quickly. But many years ago I put in code to first call GetTcpTable() because connect() was so slow to return failure.

As nearly as I can tell so far, the new Windows 11 problem may be with GetTcpTable().

If you're using Windows (any version) and you have a moment to try a quick test, check that Teensy Loader is running and Verbose Info says it's listening on port 3149. Then in a command prompt window, please run "netstat -n -a -p TCP". Does it show a line with Local Address 127.0.0.1:3149 and State "LISTENING"?

As a first attempt to work around this issue, I disabled the GetTcpTable() check so teensy_post_compile.exe tries blindly calling connect(), as it does on MacOS and Linux. Sadly, this does result in a substantial delay before it concludes Teensy Loader isn't running and automatically launches it. But then it is able to connect.

If anyone knows Winsock really well, the main problem is how to tell quickly if Teensy Loader is really listening. Maybe there's some socket option or other way to try connecting that avoids a delay before error because nothing is listening? If I could do that, then GetTcpTable() wouldn't be necessary.

Or perhaps if the new reality of Windows 11 is GetTcpTable() just can't see 127.0.0.1:3149 in listening state, then we might be stuck with all Windows users needlessly waiting for Teensy Loader to automatically launch. :(
 
If you try the netstat test, please also look for 127.0.0.1:3149 on the list but shows in wrong state.

Here's a reddit conversation. Unsure if it's related, but it is 9 days old which is about the time frame this problem started.
 
Code:
Windows 10 (Not updated)


netstat -n -a -p TCP | find "3149"
  TCP    127.0.0.1:3149         0.0.0.0:0              LISTENING


Windows 11 (Updated)


netstat -n -a -p TCP | find "3149"
  TCP    127.0.0.1:3149         0.0.0.0:0              CLOSED



I believe on winsock, connection(s) on a loopback - a closed port should fail immediately with WSCONNREFUSED (can't remember off the top of my head)? Allow GetTcpTable() to accept dwState = 0 ? And see how quickly it does get rejected if you close the teensy server?
 
If you try the netstat test, please also look for 127.0.0.1:3149 on the list but shows in wrong state.
Ok running windows 11 and I am up to date with all windows 11 updates at least according to system update.

I TeensLoader I see
Code:
11:05:31.298 (loader): Listening for remote control on port 3149
11:05:31.299 (loader): initialized, showing main window

Looks like I see it when TeensyLoader first starts. If I try the `netstat -n -a -p TCP"` I am seeing 3149
Code:
 TCP    127.0.0.1:3149         0.0.0.0:0              LISTENING

Note I am not using windows defender but rather Norton. Looking at Norton there is a rule for localhost
1794154934322.png


Been too long so can not remember if I setup or was setup automatically.
 
Not sure if it is relevant but if I do a 'verify' wait for it to finish and then do the 'netstat -n -a -p TCP' I don't see '127.0.0.1:3149 Listening' if I then manually switch 'Auto' on and repeat the call I get '127.0.0.1:3149 listening'.
 
I get the LISTENING status on my Windows 11 25H2 machine. I hadn't been experiencing problems, KB5127936 is not installed, and I've turned Windows updates off for the time being.
 
EDIT: Not sure what's going on with the double post !!

On my lessor desktop PC, which is running Windows 11 Pro (26H2 OS Build 26300.9818) & on which KB5127936 was installed on 10/28/2026:


- initiate "Verify" on an unmodified version of the "BLINK" example on Arduino IDE 1.8.19 + TD 1.6.2 (Teensy Loader, which was not previously running, is automatically started)
- receive the following error in the Arduino IDE 1.8.19
Code:
Opening Teensy Loader...
Unable find Teensy Loader.  (p)  Is the Teensy Loader application running?
Is a firewall (eg, ZoneAlarm) blocking localhost communication?
quitexit status 1
Error compiling for board Teensy 4.1.
- ODDITY: the TeensyLoader shows "ILI_Ada_FontYest.ino.hex (unreadable)", which appears to be referring the the last successfully loaded hex file
- running 'netstat -n -a -p TCP', I do see '127.0.0.1:3149 LISTENING' listed after the first "Verify", but not after subsequent "Verify" invocations
- cannot manually enable "Auto" mode on TeensyLoader


- initiate "Verify" on an unmodified version of the "BLINK" example on Arduino IDE 2.3.10 + TD 1.6.2 (Teensy Loader, which was not previously running, is automatically started)
- receive the following error in IDE 2.3.10
Code:
Opening Teensy Loader...
Unable find Teensy Loader.  (p)  Is the Teensy Loader application running?
Is a firewall (eg, ZoneAlarm) blocking localhost communication?
quitexit status 1

Compilation error: exit status 1
- ODDITY: the TeensyLoader shows "ILI_Ada_FontTest.ino.hex (unreadable)", which appears to be referring the the last successfully loaded hex file
- running 'netstat -n -a -p TCP', I do see '127.0.0.1:3149 LISTENING' listed after the first "Verify", but not after subsequent "Verify" invocations
- cannot manually enable "Auto" mode on TeensyLoader


On my more capable laptop PC, which is running Windows 11 Pro (26H2 OS Build 26300.9818) & on which KB5127936 was installed on 10/28/2026:

- initiate "Verify" on an unmodified version of the "BLINK" example on Arduino IDE 1.8.19 + TD 1.6.2 (Teensy Loader, which was not previously running, is automatically started)
- receive the following error in the Arduino IDE 1.8.19
Code:
Opening Teensy Loader...
Unable find Teensy Loader.  (p)  Is the Teensy Loader application running?
Is a firewall (eg, ZoneAlarm) blocking localhost communication?
quitexit status 1
Error compiling for board Teensy 4.1.
- ODDITY: the TeensyLoader shows "teensy_esp32.ino.hex (unreadable)", which appears to be referring the the last successfully loaded hex file
- running 'netstat -n -a -p TCP', I do see '127.0.0.1:3149 LISTENING' listed after the first "Verify", but not after subsequent "Verify" invocations
- cannot manually enable "Auto" mode on TeensyLoader


- initiate "Verify" on an unmodified version of the "BLINK" example on Arduino IDE 2.3.10 + TD 1.6.2 (Teensy Loader, which was not previously running, is automatically started)
- receive the following error in IDE 2.3.10
Code:
Opening Teensy Loader...
Unable find Teensy Loader.  (p)  Is the Teensy Loader application running?
Is a firewall (eg, ZoneAlarm) blocking localhost communication?
quitexit status 1

Compilation error: exit status 1
- ODDITY: the TeensyLoader shows "teensy_esp32.ino.hex (unreadable)", which appears to be referring the the last successfully loaded hex file
- running 'netstat -n -a -p TCP', I do see '127.0.0.1:3149 LISTENING' listed after the first "Verify", but not after subsequent "Verify" invocations
- cannot manually enable "Auto" mode on TeensyLoader


Mark J Culross
KD5RXT
 
Last edited:
Back
Top