This program works very well. Interestingly, I had the Wireless Tether for Root Users app in my Droid already. At one point, your program displayed a message which said: "Login. Start the tether app. You should get prompted for permission. Select 'Always'. Then start tethering again". When I did that, the Droid hung up and the program stopped running.
Took out the battery and rebooted the Droid and then uninstalled the WirelessTether app. Then ran your program again and this time everything worked perfectly. Thereafter I was able to connect.
Thank you for doing all of this work.