Identify server name for use in output template


I’ve got a service with an HTML output template, and I want to put a link in the template that links back to the original service homepage. But I don’t want to hard code the server name and port into the output template.

I’ve already discovered the getSystemProperty service in the PSUtilities package, and this lets me retrieve the port number, but not the server name.

Can anyone tell me how to retrieve the server name, i.e. the server that the IS is running on?

Thanks in advance,

write a java service (Hint: look @ InetAddress java API)

Take a look at this thread for some possible approaches.