node-examples icon indicating copy to clipboard operation
node-examples copied to clipboard

Minor update and fix

Open gb96 opened this issue 13 years ago • 0 comments

Thanks for writing this example! I found it works well for read-only TFTP. For read-write TFTP I found danabr/node-tftp useful.

These are a few minor changes I made which you might consider:

  1. Package 'sys' renamed to 'util' (more recent versions of nodejs suggest this).
  2. SERVER_HOST changed to '0.0.0.0' as '127.0.0.1' was only accepting inbound TFTP connections via the loopback interface. Using '0.0.0.0' as the host binds to any/all network interfaces.
  3. SERVER_PORT changed to well known TFTP port number 69. Run node as Administrator (Windows) or root (*nix) to be allowed to bind to this port.

Cheers Greg

gb96 avatar May 17 '12 04:05 gb96