Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Test connection using FTP  RSS feed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to test connection to a machine given its user name and password.
I tried using java's URL and URLConnection but is there any way by which I can just test connection to the machine without really having to specify the file name in the URL as I am not really interested in file name.

Thanks
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use sockets to do the job Sun's Socket Tutorial. FTP Commands, FTP RFC Standard the commands you are most concerned with are the USER and PASS commands.
 
There's a way to do it better - find it. -Edison. A better tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!