Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, November 26, 2009 7:55 PM
I need to transfer data from a laptop to target device via TFTP.
I can instruct the target device to begin waiting for my data and now need to just begin sending the data from my side.
However, I don't see what class is available in C# for me to implement my side of the TFTP transfer.
Is there such a class in C#?
Thanks
-Mike
All replies (7)
Saturday, November 28, 2009 6:58 PM ✅Answered | 1 vote
You can try the following TFTP libraries for C#.
C# TFTP Client
HS TFTP .NET Class Library
Also take a look at this link.
Tuesday, December 1, 2009 7:52 PM ✅Answered
Thanks Ramesh
I had actually looked @ these links awhile ago.
I guess I've come to the conclusion that there is no built-in TFTP support in C# and that I've got to create my own class to do it.
Oh well. :^)
Thanks
-Mike
Tuesday, December 1, 2009 8:01 PM ✅Answered
Thanks Ramesh
I had actually looked @ these links awhile ago.
I guess I've come to the conclusion that there is no built-in TFTP support in C# and that I've got to create my own class to do it.
Oh well. :^)
Thanks
-Mike
If you bing the MSDN library you should come to that conclusion fairly quickly. The MSDN contains a TFTP reference in the specifications section. Its safe to assume that non-Microsoft standards will not be built into the base .NET library, but you can always do a quick search just to be sure its not an exception or up and coming Microsoft converted standard (Like ECMA-376 became Microsoft's OpenXML).(//.T) Former member of Emo
Saturday, November 28, 2009 5:45 PM
I guess that there is no functionality in C# that supports TFTP (Trivial File Transfer Protocol) then?
Thanks
-Mike
Sunday, April 29, 2012 7:34 PM
You might also try the tftp.net library:
Thursday, March 28, 2013 9:30 PM
My open-source client at tftpclient.codeplex.com can be used like this:
using System.Net;
using System.Net.Sockets;
using CodePlex.JPMikkers.TFTP.Client;
...
TFTPClient.Upload(
new IPEndPoint(IPAddress.Parse("192.168.1.10"), 69),
"localfile.bin",
"remotefile.bin");
Hope that helps,
Jean-Paul
Monday, January 27, 2014 9:20 AM
Hi Jean-Paul,
I have seen your solution and it looks exactly what I need - except for one thing I need to run the server as part of an existing application. If I import the TFTPLibrary.dll code into my project is it possible to run the TFTP Server with none of the GUI etc? i.e. an invisible TFTP server running in the background of my app?
Hope your still reading these posts after all this time!!