Have you tried using Get(SystemIPAddress)
Johan, as usual, you are right. Of course (and had I looked I would have seen).
In my early morning head I just did not really think and thought that since the client is running as a wd session on the server this would give the server IP ... which get(HostIPAddress) of course does.
Trying to wake up. Should probably hand in my certification:-)