I want to transfer a file from my pc\'s particular port to android device over USB programmatically. Which technique is best for this mode of transfer among the following :
To transfer file from pc to android device via USB Socket Communication is best approach.
You have to do some additional step of port forwarding on which the Socket Communication establish.
Look at Tutorial https://github.com/user370305/Android-USB-Communication.