Wrox Programmer Forums
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 9th, 2007, 06:36 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default FTP

Guys how can I transfer file between two platforms using the standard FTP in .net? all I can get in google was how to use FTP with an FTP server, but what I need is between two local PCs.

Please Help :)

Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"
__________________
Nothing is impossible. The impossible only takes longer. \"Digital Fortress, Dan Brown\"
 
Old December 9th, 2007, 07:14 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Without one of the PCs having an FTP Server running then you can't do it - FTP is a client server technology, not a peer to peer.

/- Sam Judson : Wrox Technical Editor -/
 
Old December 9th, 2007, 07:58 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks man...

But sorry I am slightly confused here.. I don't know if my request was even right :) ..
what I do usually is: run cmd, ftp to a server, user name and password, get the file, and then close the ftp.

That exactly what i need :) .. I really don't know if you answer applies to that too, but well.. I hope it does not :).


Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"
 
Old December 9th, 2007, 09:28 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Sam is correct. FTP requires an FTP server.

Perhaps the confusion here is the terms used. The term "client" and "server" don't so much apply to the computer or the operating system, but more so to the software that is running.

When you "ftp to a server", you are indeed FTPing to an FTP *server*. You can install simple FTP servers on any machine so you can turn your "client" PC into a server as well. Much in the same way we develop ASP.NET applications. I run Windows XP which most people would consider a non-server operating system. However, I have IIS (which is an HTTP server) installed. I also have SQL server installed.

If your application needs to communicate with other instances of your application you have some other options. You can use .NET remoting. Your application listens to a TCP port you designate and it calls other instances on that port. You only need to know the addresses of the other machines.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Error caveatashish VB How-To 1 December 5th, 2007 09:15 AM
ftp zaghmout C# 2005 2 November 6th, 2007 09:55 AM
FTP pakman Excel VBA 2 June 30th, 2005 05:58 AM
FTP pakman BOOK: Excel 2003 VBA Programmer's Reference 0 June 27th, 2005 04:24 AM
FTP? Nasimov Visual C++ 1 December 24th, 2003 09:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.