Port setup in FtpWebRequest

I need a user to be able to change the port for uploading FTP information, but I cannot find a way to change this in FtpWebRequest.

+4
source share
1 answer

Isn't the port part of the URI used to create the web request?

FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://10.0.0.1:12345"); 
+10
source

All Articles