title: apache commons net with reverse tethering
body: <p>I am trying to write android app which sends photos to FTP server. I use Appache-commons-net library to do so. When device uses Wi-Fi everything is fine, photos are uploaded to FTP server. But my customer wants this app to be able to do the same when Wi-Fi in app is turned off and device gets net from personal computer(Windows) connected to the device via USB cable. I was able to connect device using "gnirehtet":</p>
  
  <p><a href="https://medium.com/genymobile/gnirehtet-reverse-tethering-android-2afacdbdaec7" rel="nofollow noreferrer">https://medium.com/genymobile/gnirehtet-reverse-tethering-android-2afacdbdaec7</a></p>
  
  <p>When I use gnirehtet my app uploads only firsth photo to FTP server and hangs on getting reply code at the end of "_storeFile" function in FTPClient class of AppacheCommonsNet. When I use WiFi everything is ok, the problem is only when I use reverse tethering. I checked other reverse thetering solutions and I met the same problem. </p>
  
  <p>Does anybody knows why it happens? Or what I have to do to make it work?</p>