SOCKS FTP Client for nodejs

node-socksftp is an FTP client for nodejs supporting SOCKS proxy.

Note: This is a fork of the node-ftp project with added support for connecting to a SOCKS proxy.

Instructions:

  1. Copy the socksftp package to your program’s working directory.
  2. Make a new FTP connection through a SOCKS proxy.

Example:

var server = {
	'host': 'ftp.ftpdomain.com',
	'port': 21,
	'user': 'ftpusername',
	'password': 'ftppassword',
	'socksproxy': 'username:password@socksdomain.com:1080'
};

var Client = require('socksftp');

var c = new Client();
c.on('ready', function() {
	//run ftp command here...
});
    
c.on('error', function(err){
	console.error('socksftp error: ' + err);
	return;
});

c.connect(server);

Issues:

You can report any issue via http://github.com/choonyme/node-socksftp/issues.

Download now:

Download

2 thoughts on “SOCKS FTP Client for nodejs”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

A personal dev blog by C.J. Ng