title: Read IP address from a config file Not Working
body: <p>I'm a newbie at Python and trying to read IP and login info from a config file params.ini. The contents of the ini file are:</p>
  
  <pre><code>[Login]
  FtpIP = 1.1.x.x
  UID = anonymous
  PWD = r@ee.com
  
  [Directory]
  Upload Directory = /
  Home Directory = C:/Users/MyDocuments/Python/FilesUpload/**
  </code></pre>
  
  <p>The code that I have written is:</p>
  
  <pre><code>import ftplib
  import configparser
  
  config = configparser.ConfigParser()
  config.sections()
  
  config.read('params.ini')
  
  ftp = ftplib.FTP()
  TargetIP = config.get('Login','FtpIP')
  print (TargetIP)
  ftp.connect(TargetIP)
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>socket.error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond*
  </code></pre>
  
  <p>If I type the IP directly into the code, then it works. Please help.</p>