PJO2 / tftpd64

The working repository of the famous TFTP server.
http://www.tftpd64.com
GNU General Public License v2.0
272 stars 60 forks source link

serviceError 10061 (and solution!) #7

Closed alphons closed 2 years ago

alphons commented 2 years ago

Why are we getting the winsock error 10061 After some debugging the problem is the service can not bind to the socket on its default port 2994 This is de default (startup) port for console to listening on. This port was blocked, as can be seen by using netsh.

Problem:

Open a DOS prompt (as administrator) netsh interface ipv4 show excludedportrange protocol=tcp

The range 2912-3011 was excluded! Probably due to windows NAT service winnat,

Solution:

Open a DOS prompt (as administrator) net stop winnat

Check again:

Open a DOS prompt (as administrator) netsh interface ipv4 show excludedportrange protocol=tcp

And restart your tftpd service (or gui) again. Check (using a dos prompt) if it listens on the new port.

Open a DOS prompt (as administrator) netstat -an

Hope this will help others.

Cheers, from the Netherlands.