Linux – Running TFTP Server on specified port

fedoralinuxtftp

I have a tftp server running in fedora platform.

And from tftp client i tried to connect to the tftp-server on port:69 and tried to get a file from server.

After read request from client the server port is changed to random.

Is there any possibility to run the tftp-server on a defined port (Example: 5800) only?

Note : TFTP Client wrote in C program.

Best Answer

No, tftp is fixed to run on port 69. You cannot change this. Well, you can as most server allows you to change the port, but the client especially the ones embedded in hardware will ask tftp on port 69.

If you really want that you must use iptables to redirect traffic from 69 to your arbitrary chosen one.