I'm playing with %Net.DB.Iris and stumbled over a mystery
set con=##class(%Net.DB.DataSource).CreateConnection(host,...)
set srv=con.CreateIris()
write srv.ClassMethodValue("%SYSTEM.Util","InstallDirectory")
Entering the above lines (in a terminal session) on my local instance yields the correct answer for:
host = "localhost"
host = the real IP of localhost (i.e. host="192.168...")
host = "10.x.y.dev" customers development system (over a VPN tunnel)
but for

.png)

.png)

.jpg)