![]() ![]() For starters, it is private and you have complete control over who is accessing it and what is being transferred. Server log Report when the client connects to the server with valid IP If the reply was helpful, please don’t forget to upvote or accept as answer. I have verified that the information is accurate before sharing it with you. I used AI provided by ChatGPT to formulate part of this response. They should be able to assist you in troubleshooting and resolving any server-side restrictions or configuration issues.īy investigating the FTP server's configuration, verifying client connectivity, testing connections from different locations, and reaching out to the server administrator, you should be able to identify the cause of the problem and take appropriate steps to resolve it. Provide them with the details of the problem and the error messages received during the download attempts. Contact the FTP server administrator: If you don't have direct control over the FTP server, reach out to the administrator or hosting provider to discuss the issue.If the issue is consistent across different locations, it's more likely related to the FTP server configuration. ![]() This will help determine if the issue is specific to certain IP ranges or if it affects all dynamic IP addresses. Test FTP connection from different locations: Try connecting to the FTP server from multiple locations with dynamic IP addresses.Sometimes, connectivity issues or network problems can affect the ability to download files from an FTP server. Verify client connectivity: Ensure that clients with dynamic IP addresses have a stable and functional internet connection.Look for settings related to IP whitelisting or blacklisting and ensure that clients with dynamic IP addresses are not blocked. Check the FTP server's configuration: Review the FTP server's settings and configuration to see if there are any IP-based access restrictions in place.To troubleshoot and resolve this problem, you can consider the following steps: It's common for FTP servers to have security measures to limit access to certain IP ranges or to require authentication for downloading files. One possible reason for this issue is that the FTP server has some restrictions or access controls in place that prevent clients with dynamic IP addresses from accessing and downloading files. Thank you for your question and for reaching out with your question today.īased on the information provided, it seems that clients with dynamic IP addresses are experiencing issues downloading a file from the FTP server, while clients with static IP addresses can download the file successfully. StrLocalFile:="D:\town finance/text.txt", _ MsgBox "fail", vbInformation, "Pars Royan"įtpDownload strRemoteFile:="//public_ftp/text.txt", _ MsgBox "download ok", vbInformation, "Pars Royan" If FtpGetFileA(hConn, strRemoteFile, strLocalFile, 1, 0, FTP_TRANSFER_TYPE_UNKNOWN Or INTERNET_FLAG_RELOAD, 0) Then HConn = InternetConnectA(hOpen, strHost, lngPort, strUser, strPass, 1, 0, 2) HOpen = InternetOpenA("FTPGET", 1, vbNullString, vbNullString, 1) Sub FtpDownload(ByVal strRemoteFile As String, ByVal strLocalFile As String, ByVal strHost As String, ByVal lngPort As Long, ByVal strUser As String, ByVal strPass As String) Private Declare PtrSafe Function InternetCloseHandle Lib "wininet" ( _ Private Declare PtrSafe Function FtpGetFileA Lib "wininet.dll" ( _ Private Declare PtrSafe Function InternetConnectA Lib "wininet.dll" ( _ Private Declare PtrSafe Function InternetOpenA Lib "wininet.dll" ( _ Private Const INTERNET_FLAG_RELOAD As Long =
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |