File transfer using sockets on fetch command