Skip to content

Conversation

gb96
Copy link

@gb96 gb96 commented May 17, 2012

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

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant