This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Get Host/Machine Name?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 15, 2008
01:17 PM
Get Host/Machine Name?
Hi There,
I need to add a custom rule that checks the machine/host name where the Installer is running. Can someone point me to any java examples of this?
I need to add a custom rule that checks the machine/host name where the Installer is running. Can someone point me to any java examples of this?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 15, 2008
05:26 PM
A web search for "java host name" should turn up some examples; for example,
java.net.InetAddress.getLocalHost( ).getHostName( )
should get the name you want, and you can use that to populate a variable that you use in a rule.
java.net.InetAddress.getLocalHost( ).getHostName( )
should get the name you want, and you can use that to populate a variable that you use in a rule.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 16, 2008
09:35 AM
I usually use the HostInfo plugin to get this information for me.
http://www.acresso.com/downloads/downloads_7399.htm
http://www.acresso.com/downloads/downloads_7399.htm
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 16, 2008
09:58 AM
Will give it a go.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)