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
Post a Comment