Please carefully go through the following checklist.
Check your FTP data carefully
Double check your FTP connection data - host, username and password.
Make sure that your firewall allows the connection
Make sure that your firewall software is either turned off or configured so that the code editor is allowed to access the internet.
Try FTP passive mode
If the above steps do not resolve the issue, configure FTP to run in passive mode: