I was trying to make i own driver to catch all failed logins, en get the IntruderAddress correctly. As we are running at idm 4.0.2, i wanted to use the ECMA script. However, that one gave unreliable results. The first and last octets of the ip address were mostly, but not always! negated. So for example instead of 172 it gave 84, (256-172).
So after trying to correct the script i finally implemented the bh-dirxmlutils.jar file, which gives reliable results.
So if you want reliable ip addresses, use the JAR implementation.
Thanks for your work anyway, Lothar!