java - What localhost property is guaranteed to be unique across OSes and regardless of network? -


is there single property concerning local machine guaranteed unique on both windows , os x regardless of network attached , accessible java?

for instance, mac address returned change when active nic changes (user switches between wired , wireless), hence mac address not meet criterion.

a hostname closest meeting these criterion:

inetaddress localhost = inetaddress.getlocalhost();  hostname = localhost.gethostname(); 

though in virtual machine environments vm guest cycled nightly, hostname can change (we have such users).


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -