title: java.net.UnknownHostException not able to connect to ftp
body: <p>I have ftp port as: <code>ftp://173.201.0.1/</code></p>
  
  <p>I am trying to connect it through following:</p>
  
  <pre><code>String Ftp_Path = "ftp://173.201.0.1/";
  
  
      public  List&lt;String&gt;  GetFileList()
  
      {
           String ftpServerIP = Ftp_Path;
           String ftpUserID = Ftp_UserName;
           String ftpPassword = Ftp_Password;
  
           FTPFile[] downloadFiles = null;
  
           StringBuilder result = new StringBuilder();
           FTPClient ftp = new FTPClient();
           List&lt;String&gt; xlsFiles = null;
  
           try {
              ftp.connect(Ftp_Path);
              ftp.login(ftpUserID, ftpPassword);
  
              downloadFiles=ftp.listFiles();
  
              xlsFiles = new ArrayList&lt;String&gt;();
              for(FTPFile i : downloadFiles) {
                  if(i.toString().endsWith(".xls")) {
                      xlsFiles.add(i.toString());
                  }
              }
  
  
          } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
           return xlsFiles;
  
      }
  </code></pre>
  
  <p>But I am getting error on line:</p>
  
  <pre><code>ftp.connect(Ftp_Path);
  </code></pre>
  
  <p>Following is the error.</p>
  
  <pre><code>java.net.UnknownHostException: ftp://173.201.0.1/
      at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.&lt;init&gt;(Unknown Source)
      at java.net.Socket.&lt;init&gt;(Unknown Source)
      at org.apache.commons.net.DefaultSocketFactory.createSocket(DefaultSocketFactory.java:92)
      at org.apache.commons.net.SocketClient.connect(SocketClient.java:201)
      at org.apache.commons.net.SocketClient.connect(SocketClient.java:289)
      at com.amazonaws.mws.samples.ImportRulesPropertyClass.GetFileList(ImportRulesPropertyClass.java:33)
      at com.amazonaws.mws.samples.ManageReportScheduleSample.main(ManageReportScheduleSample.java:74)
  </code></pre>
  
  <p>Plase help me.</p>
  
  <p>I am new with java.</p>