title: ConnectionRefusedError: [Errno 111] Connection refused
body: <p>I was trying to use <code>ftp</code> and I am getting the following error:</p>
  
  <pre><code>&gt;&gt;&gt; ftp = ftplib.FTP('192.168.248.108')
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/lib/python3.5/ftplib.py", line 118, in __init__
      self.connect(host)
    File "/usr/lib/python3.5/ftplib.py", line 153, in connect
      source_address=self.source_address)
    File "/usr/lib/python3.5/socket.py", line 711, in create_connection
      raise err
    File "/usr/lib/python3.5/socket.py", line 702, in create_connection
      sock.connect(sa)
  ConnectionRefusedError: [Errno 111] Connection refused
  </code></pre>
  
  <p>I was trying to take it step by step since the whole client and server codes were not running. Help please. Thank you.</p>
  
  <p><strong>EDIT:</strong><br>
  This is the client side code:</p>
  
  <pre><code>from ftplib import FTP
  
  ftp = FTP('192.168.248.128')
  ftp.login(user='username', passwd = 'password')
  ftp.cwd('/Desktop/FTP')
  def placeFile():
  
      filename = 'myfile.txt'
      ftp.storbinary('STOR '+filename, open(filename, 'rb'))
      ftp.quit()
  
  placeFile()
  </code></pre>