Forum Discussion
Quartus Programmer 21.1: JTAG Server Error Code 82 – Port 1309 Cannot Be Bound
Hello,
You've already narrowed this down very precisely. The `jtagserver.exe --foreground` output tells us exactly what's wrong: **something else is already bound to TCP port 1309**, which prevents the Altera JTAG Server from starting. Everything else (error code 82, "Server error" from jtagconfig, the service failing to start) is a downstream consequence of that single root cause.
By default, the JTAG Server listens to TCP/IP port 1309, and JTAG client applications connect to the same port. AN 939: JTAG Connections Over SSH If that port is already occupied, the server cannot bind and immediately exits — exactly what you're seeing.
Here's how I'd work through this systematically:
1. Identify what is actually holding port 1309
Your `taskkill` attempt failed because the PID may have already exited between the `netstat` scan and the kill command, or the process is a system-protected service. Try this instead:
Run Task Manager → Details tab, sort by PID, and look up PID 12888 (or whatever current PID `netstat` shows). Note the process name.
Alternatively, use Resource Monitor → Network tab → Listening Ports — it shows the owning process name directly alongside the port.
You can also run: netstat -ano | findstr 1309 again after a fresh reboot (before starting anything) to see if the port is still occupied at boot time. If it is, a service is claiming it at startup.
Common culprits on Windows 11 that can grab port 1309: a stale/orphaned `jtagserver.exe` instance still registered as a service but in a broken state, another Quartus installation (e.g., a full Quartus Prime install alongside the standalone Programmer), or a third-party application.
2. Clean up any stale JTAG Server registration
To remove or delete the Altera JTAG Server service from your Windows computer, you can uninstall the service using the Windows Command Prompt by entering `jtagserver --uninstall` and then rebooting, or delete the service using `sc delete Altera JTAG Server` followed by a reboot. How do I remove the Altera JTAG Server service from my Windows computer?
Run both of these from an **elevated (Administrator) command prompt**, then reboot. After the reboot, check `netstat -ano | findstr 1309` again before reinstalling. If port 1309 is now free, proceed to reinstall.
3. Reinstall the JTAG Server correctly (as Administrator)
To correct issues with the JTAG server, place the required files into the appropriate folder, then open a DOS command prompt and type `jtagserver --install`. To confirm that the jtagserver was installed correctly, run the `jtagserver --status` command. Attempted to access JTAG -- internal error code 82 occurred
Make sure you run the install command from an **elevated prompt** — to enable a remote JTAG server on your Windows computer, you will need administrator privileges or rights since a modification to the registry will be performed. Do I need administrator privileges to enable a remote JTAG server on a Windows computer? The same applies to the install step itself.
After installing, start it with:
jtagserver --start
Then verify with:
jtagserver --status
After installation, you can either use the Task Manager → Services tab or the command-line option `--status` to verify if the jtagserver service is running. You can control the jtagserver service using the `--start` and `--stop` command-line options or using the Task Manager. Altera FPGA Software Installation and Licensing
4. Check for firewall blocking port 1309
You may receive the "Can't Enable Remote Connections to JTAG Server" error if your computer's firewall program or your IT department has blocked port 1309. Another sign that port 1309 may be blocked is that when you try to enable remote connections the settings will not be saved and revert back to default settings. Enable port 1309 on your computer or firewall program, or speak to your IT department to make sure they are not blocking port 1309. Can't Enable Remote Connections to JTAG Server
Also, you may receive the "Attempted to access JTAG server -- internal error code 82 occurred" error if you have a firewall or anti-virus program running when you installed Quartus and the Altera JTAG Server. To resolve this, disable or uninstall your firewall or anti-virus program, then start the JTAG server. Once you have started the Altera JTAG Server, you may then re-enable or reinstall the firewall or anti-virus program. Attempted to access JTAG server --internal error code 82 occurred
5. If the JTAG Server service is conflicting with itself (broken service state)
The USB Download Cable may not be detected because the version of JTAGServer running as a host is not working properly as a user mode application. To resolve this: run Windows in Safe Mode, run "msconfig" in the command prompt to bring up the System Configuration window, and in the Services tab, disable "Altera JTAG Server" and then reboot the PC. Why is the Intel® FPGA USB Download Cable not detected by Intel Quartus® Prime Programmer when it is recognized correctly in Device Manager? This clears the broken service state so you can do a clean reinstall.
Regarding your specific questions:
Q5 (Can the JTAG server use a different port?): The JTAG Server's port is fixed at 1309 — there is no way to specify the port used to connect to the EthernetBlaster cables; the default port will be 1309. Can I specify the port used to connect to the EthernetBlaster II Communications Cable? The same applies to the local JTAG Server. You cannot redirect it to an alternate port.
Q3/Q4 (Known issue with Quartus Programmer 21.1 on Windows 11): I don't have a documented specific known issue or patch for Quartus Programmer 21.1 on Windows 11 in the available documentation. The port-conflict root cause you've identified is the primary issue to resolve first — it's not version-specific behavior.
Q6 (Complete removal and reinstall): The clean sequence is: (1) `jtagserver --stop`, (2) `jtagserver --uninstall` or `sc delete Altera JTAG Server`, (3) reboot, (4) confirm port 1309 is free, (5) `jtagserver --install` from an elevated prompt, (6) `jtagserver --start`.
Q7 (Anything else to check): Also verify there is no second Quartus installation on the machine whose `jtagserver.exe` is running and holding the port. Check Services (services.msc) for any duplicate "Altera JTAG Server" entries.
The bottom line: free port 1309 first (identify and terminate or remove whatever is holding it), do a clean uninstall/reinstall of the JTAG Server as Administrator, and temporarily disable antivirus during the reinstall. That should get `jtagconfig` detecting your USB-Blaster and Cyclone IV board.