Announcement

Collapse
No announcement yet.

FTP Error(0): Could not resolve the host name or IP address...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    FTP Error(0): Could not resolve the host name or IP address...



    I'm trying to write a script that will upload a file from homeseer to my NAS (Synology). I created a user specifically for this FTP and confirmed the credentials work.

    I keep getting the following error:
    FTP Error(0): In FTP Login: Could not resolve the host name or IP address to a system IP Address

    What am I doing wrong?

    This is my code:

    Code:
    Public Sub Main(ByVal Parms As Object)
    
    
            Dim ftpOutput As String
    
            Dim host As String
    
            Dim user As String
    
            Dim password As String
    
            Dim command As String
    
            Dim rfile As String
    
            Dim lfile As String
    
            Dim path As String
    
    
    
    
            host = "192.168.1.177"
    
            user = "xxxxxxxx"
    
            password = "xxxxxxxxxx"
    
            command = "put"
    
            lfile = "C:\Program Files (x86)\HomeSeer HS4\html\backups\8_1_2021-3_1_20.zip"
    
            rfile = "8_1_2021-3_1_20.zip"
    
            path = "\Network Devices\HomeSeerHub\Hub Backups\"
    
            ftpOutput = hs.FTP(host, user, password, command, path, lfile, rfile)
    
            hs.WriteLog("HS4_FTPTransfer Error: ", ftpOutput)
    
        End Sub
Working...
X