Machine network names

Andre Garzia soapdog at mac.com
Wed Oct 5 17:50:31 EDT 2005


Jacque,

Is this program running on remote machine or local machine wondering  
about a remote connection?

Some way to do this is by using reverse dns lookup. you can use "host  
<ip address>" on a shell command to resolve it back to the hostname  
but this works only with registered ips. From your email I thing  
you're mounting remote volumes (which might have the same name) and  
trying to give each of them their own unique ID. Well why not  
pregenerate tons of unique IDs and assigning them as temporary files  
on the remote volumes, this way you could just query /RemoteVolume/ 
myUniqueID.txt and see who is who... don't know, this feels like a  
hack. What are you trying to do and what information you have on the  
remote machines?

Cheers
andre



On Oct 3, 2005, at 8:00 PM, J. Landman Gay wrote:

> I want to know the network name of a remote machine on a network.  
> For a local machine, I can get "the address" and the first part of  
> the address is the name I'm looking for.  But on a remote, mounted  
> volume "the address" doesn't include its machine name. Any ideas? I  
> only need this for Mac OS X, but it has to work for all but the  
> earliest versions of OS X.
>
> If I can't easily get the network name, then any unique identifying  
> info would do. I considered getting the machine ID using Ken Ray's  
> "stsGetSerialNumber" handler, but it only returns the serial  
> numbers of local hard drives.
>
> The only requirements are: it has to be a unique identifier, and it  
> has to be obtainable both remotely and locally.
>
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the Use-livecode mailing list