Here is the tricky solution:
var local_addr = '127.0.0.3'var remote_addr = '127.0.0.1'var cli = new net.Socket({ handle: net._createServerHandle(local_addr) })
cli.connect(5222, remote_addr)
References:
http://groups.google.com/group/nodejs/msg/be0a9ae726e830b3
No comments:
Post a Comment