JClass
How do I find my computers host name?
Almost all platforms should respond to the 'hostname' command. Simply open up a command prompt on your platform and
type 'hostname'. If this does not work please see the platform specific information below:
Windows 2000/NT: in the command prompt type:
cmd.exe /c echo %COMPUTERNAME%
Windows 98/ME: in the command prompt type:
command.com /c echo %COMPUTERNAME%
Unix: in the command prompt type:
uname -n
You may also do it programmatically.
There is a static method in the com.sitraka.licensing.util.Platform class.
Platform.getHostName()
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center