Need to enable ICMP Ping response from phone
The simplest (and, of course, tricky) way is to use nping. For example:


  nping -c &lt;ping_count&gt; --tcp -p &lt;your_ftp_port_number&gt; &lt;ip_address_of_your_phone_hosting_ftp_service&gt;


Achieve same goal without modification of Android.