views:

118

answers:

3

I want to know how I can send or recieve data over internet to/from a computer in subnet (this is specially in context to PPP users bcoz getting static IP is not so much in practice).

I actually want to create an application which can transfer file between 2 specific computer in WAN.

so what are things I need to know about to do the same..(ex. PRESENT IP or MAC ADDRESS etc..)

PROGRAMATICAL EXPLANATION ALTHOUGH PREFFERED,BUT IS NOT NECCESARY...

+2  A: 

FTP?

Colin Pickard
+2  A: 

There is a vast torrent of useful results in google, I seriously suggest to google before you ask here.

For instance, have a look at the top result: http://www.devarticles.com/c/a/C-Sharp/Network-Programming-in-C-sharp/

Apart from that, FTP, as suggested by Colin, may be what you're looking for. If you're new to using FTP in C# have a look at http://www.google.com/search?q=c%23+ftp

mafutrct
A: 

I'm thinking part of your question has to do with one of the computers not having a static IP address. If the two computers, A & B, don't know each others IP address, then an alternative is to use a server. Either A can store the information on the server to be picked up by B, or A can register his current IP address on the server for B to lookup and then connect to A, assuming firewalls don't interfere. Another scheme is that A and B can simultaneously connect to the server, and the server can relay data between the two.

Of course, all of this communication would be done using techniques such as those suggested by mafutrct and Colin.

Greg Graham