In this example i am going to implement a ncat which will fetch the file form TFTP static directory and put it on STDOUT. Now lets see a simple TFTP client code in C.Before that please setup a TFTP server on your machine. ![]() The client send the TFTP request to the server on port 69 which is the well know port number for TFTP.Then server opens a UDP connection and start sending data to client and in return the client sends ACK/ERROR as shown in above figure. ![]() Please note that the opcode and Block numbers are in BYTE order of network.The port number used for TFTP is 69.
0 Comments
Leave a Reply. |