TFTP SERVER ON UBUNTU(14.04)
Karl Auer
kauer at biplane.com.au
Fri Sep 30 07:37:37 UTC 2016
On Fri, 2016-09-30 at 06:36 +0000, Jithin T Raj wrote:
> Thank you very much for the information. another doubt I
> have is that when I run "service --status-all" command i can see my
> tftp server listed.is tftp a server no? how can i check my tftp is
> working or not from my local PC itself..i have created /tftpboot
> folder..some toutorials saying that i have to make an empty test file
> and put it in /tftpboot folder then some bla bla .. but i couldn't
> get it clear..
Yes - the word "server" can mean hardware hosting services, or it can
mean a piece of software that offers services.
You can test if it's working from your own computer by connecting either to the outside address of your connected interface (an ethernet port, for example) OR by connecting to the lo interface on 127.0.0.1 (or whatever address it has). As long as your tftp server is listening on both those ports of course, which it probably is.
You can find out what ports it is listening on using the netstat program, something like this:
netstat -an | grep "LISTEN" | grep "udp" | grep "\:69"
You might get a couple of false positives, but if the tftp server is running you should see one or two lines showing your addresses with ":69" after them in the "Local address" column. If you have changed the server port to something other than 69, obviously substitute the right port number in there.
To try actually getting or putting a file, run the tftp client (probably called "tftp"). Be warned that tftp is very finicky. Directories, permissions and command syntaxes (especially paths) have to be just right, or it won't work. The path from the point of view of a client may not be the same path as the server sees. Read the man pages very carefully.
There
Regards, K.
PS: There's no need to send replies to me AND the list. Just to the
list is fine.
More information about the ubuntu-users
mailing list