I'm trying to host my FTP Server at home and also hardcode the server address on the App source. The problem is that eventually my IP address will change and the App will stop working. To solve this issue I thought I should use
no-ip, which is basically a site, that give me a URL, and that URL is contantly updated with my last IP Address. so on the source code I would have something like this:
Imports EnterpriseDT.Net.Ftp
Public Class Form1
Dim ftp As New FTPConnection
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
With ftp
.ServerAddress = "myurl.no-ip.org" ' URL with last IP updated
.UserName = "user"
.Password = "password"
Try
.Connect()
MsgBox("Connected")
Catch ex As Exception
MsgBox("Could not connect")
End Try
End With
End Sub
End Class
and not like this
Imports EnterpriseDT.Net.Ftp
Public Class Form1
Dim ftp As New FTPConnection
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
With ftp
.ServerAddress = "1.2.3.4"
.UserName = "user"
.Password = "password"
Try
.Connect()
MsgBox("Connected")
Catch ex As Exception
MsgBox("Could not connect")
End Try
End With
End Sub
End Class
But nevermind I got it to work.