Hi, I need some help uploading a file through FTP. Let's say I want to upload a file named "ip.txt" to a server named upload.com with username and password "upload", what code would I use?

I've been trying to do it through an Inet control set for FTP protocol using the following code:

InetFTP.RemoteHost = "upload.com"
InetFTP.UserName = "upload"
InetFTP.Password = "upload"
InetFTP.Execute , "put """ & App.Path & "/ip.txt" & """ " & "ip.txt"

but it hasn't been working. Also, I need to do it in passive mode (to make things slightly difficult). I am more than willing to use a third party activex control also.

Secondly, is there a good way to get the local IP address of a computer? I've been doing it through the registry, which is massively complicated. Is there a windows API call or seomthing? Thanks a lot.