- Home /
Unable to connect to remote server when downloading from FTP
Hello, im trying to download a file from my server. I followed the steps and codes in this link. I've added the ftp class in my script and added these lines to my main class:
ftp ftpClient = new ftp(@"ftp://ftpserver.sharefiles.com/", "user123", "password123");
ftpClient.download("foldername/test.txt", @savepath);
However, when i try to download, I get the error "System.Net.WebException: Unable to connect to remote server ---> System.Net.Sockets.SocketException: 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."
Any heads up where I went wrong? Thanks in advance
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612103136im_/https://answers.unity.com/themes/thub/images/avi.jpg)