Ubuntu: java.net.SocketException in ec2-api-tools

Having installed ec2-api-tools under my lucid dev environment I was trying to shut ec2 instances down with ec2stop [instance_id] and I was getting the following exception: $ ec2stop i-XXXXXXXX Unexpected error: java.net.SocketException: Invalid argument or cannot assign requested address at java.net.PlainSocketImpl.socketConnect(Native Method) at java.…