Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor update and fix #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Minor update and fix #2

wants to merge 1 commit into from

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