title: How to upload file through FTP in Android
body: <p>I want to upload xml file to through ftp from android sdcard folder, I'm trying this code to connect to ftp:</p>
  
  <pre><code>      FTPClient f = new FTPClient();
        f.connect(server,21);
        f.login(username,password);
        Log.d("status",f.getStatus());
        f.logout(); 
        f.disconnect();    
  </code></pre>
  
  <p>but I getting exception</p>
  
  <p>Exception:</p>
  
  <blockquote>
    <p>java.net.SocketException: Permission denied</p>
  </blockquote>