cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the server name in 04s

Former Member
0 Kudos

Does anyone know for a way to get the server name from inside Web Dynpro in 04s?

Accepted Solutions (1)

Accepted Solutions (1)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Lee,

You can use the InetAddress class get the hostname

InetAddress n=InetAddress.getLocalHost();

String name=n.getHostName();

Hope this would solve your problem

Regards, Suresh KB

Former Member
0 Kudos

works like a charm.

Thanks,

Lee

Answers (0)