Thanks Robert. This is been added in similar form to the code base. It imposed a difference to the public interface in LocalDevice though, in that the getAddress method now take an InetAddress parameter. The equivalent code is now:
d.getAddress(d.getDefaultLocalInetAddress())
All code changes have been checked into CVS.