title: connecting ftp server using python
body: <p>I try to connect to an ftp server in my phone using python code and I get an error.</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>import ftplib
  server = ftplib.FTP()
  server.connect('192.168.135.101', 5556)
  server.login('svgn','123456')
  print (server.dir())
  </code></pre>
  
  <p><strong>Error</strong></p>
  
  <blockquote>
    <p>C:\Python27\python.exe
    C:/Users/alisivgin/PycharmProjects/untitled2/deneme2.py Traceback
    (most recent call last):   File
    "C:/Users/alisivgin/PycharmProjects/untitled2/deneme2.py", line 3, in
    
        server.connect('192.168.135.101', 5556)   File "C:\Python27\lib\ftplib.py", line 132, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)   File "C:\Python27\lib\socket.py", line 571, in
    create_connection
        raise err socket.error: [Errno 10061] Hedef makine etkin olarak reddetti�inden ba�lant� kurulamad</p>
    
    <p>Process finished with exit code 1</p>
  </blockquote>
  
  <p>Thanks.</p>