Transfering a file from one machine to another over the internet

Hi,

I am supposed to write a module that transfers a data file from one machine - call it X, to another machine - call it Y.

Machine X is a web server which would have a fixed IP and machine Y is a desktop in which the file has to be transferred to a particular folder. e.g. machine Y\Files. This folder at machine Y would be password protected.

Can anyone suggest me a concept as how to go about it and the technology part that I may have to use, like FTPFactory or RMI etc.

I would be greatly obliged.

[535 byte] By [Mickey_JP1a] at [2007-10-3 3:56:40]
# 1
The client machine - Y - would need a web client software with access to the protected folder.
watertownjordana at 2007-7-14 21:54:55 > top of Java-index,Core,Core APIs...
# 2
My advice to put two process on the both machines, and make them interact using the Hole-Puncing.Thismethodolgy is effective, and work throw the firewalls too.
mahmoudabdelsattara at 2007-7-14 21:54:55 > top of Java-index,Core,Core APIs...
# 3
Thanks for the "hole punching" suggestion. I came accross this somewhere else also. But can you please elaborate on this.
Mickey_JP1a at 2007-7-14 21:54:55 > top of Java-index,Core,Core APIs...
# 4

Try using UPnP - Universal Plug and Play, its a standard for interplay including automation of port management - items such as the IMs use this to enable ports for use for file-sharing, video, and voice with their network.

UPnP allows them to open a port and name it with their application so people know what it is used for.

This is just ANOTHER option for you - but it's a hard one.

watertownjordana at 2007-7-14 21:54:55 > top of Java-index,Core,Core APIs...