TFTP is a client/server for TFTP network protocols. The TFTP protocol is a simpler version of classic FTP, primarily used to update firmware on network devices such as routers, commuters or IP phones. It can also start remote computers (PXE).
Support for local IP
IncomingTransfer interfaces also provide the
RemoteAddr method which returns the peer IP address and port as a
RequestPacketInfo interface provides a
LocalIP method with returns the local IP address as a
net.IP that the request is being handled on. These can be used for detailed logging in a server handler, among other things.
Note that LocalIP may return nil or an unspecified IP address if finding that is not supported on a particular operating system by the Go net libraries, or if you call it as a TFTP client.
The app is written in Golang and it is released under the MIT license