Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

how to set ftp port using vs 2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob Latour - 15 Mar 2006 05:49 GMT
OK, I give up, how do I set the FTP Port to be used in conjunction with
System.Net.FtpWebRequest

(in VB.NET 2005 I can set the PASV value, but I can't figure out how to
change the port)

Dim Request As System.Net.FtpWebRequest =
System.Net.FtpWebRequest.Create(uriString)

Request.UsePassive = True

Help would be appreciated.

Thanks, Rob
Vadym Stetsyak - 16 Mar 2006 14:53 GMT
Hello, Rob!

RL> (in VB.NET 2005 I can set the PASV value, but I can't figure out how to
RL> change the port)

RL> Dim Request As System.Net.FtpWebRequest =
RL> System.Net.FtpWebRequest.Create(uriString)

RL> Request.UsePassive = True

RL> Help would be appreciated.

you mean the port you're connecting on?
if that is so you can add port to the url you specify for connection
e.g. ftp://myhost:359

Or

if you want to change the local endpoint FtpWebRequest uses, you can do it through ServicePoint.BindIPEndPointDelegate

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Rob Latour - 17 Mar 2006 00:26 GMT
Perfect!  Thank you Vadym.

> Hello, Rob!
>
[quoted text clipped - 21 lines]
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com 

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.