hostNameToAddress not working??? (Correction)

Dave dave at looktowindward.com
Fri Feb 15 07:50:50 CST 2008


!!!!!Opps!!!!!

Some typeo's crept in! It should read - however if I append ".local"  
to the machine name it returns the correct LAN address. So if I  
change my function as so:

------------------------------------------------------------------
--
--  IPMGetHostIPAddressLAN
--
------------------------------------------------------------------
function IPMGetHostIPAddressLAN
   local myHostName
   local myHostIPAddress

   put the hostName into  myHostName
   if char -6 to -1 myHostName <> ".local" then
     put ".local" after myHostName
   end if

   put hostNameToAddress(myHostName) into myHostIPAddress
   return myHostIPAddress
end IPMGetHostIPAddressLAN


It works!!!!!!!!!!

All the Best
Dave







More information about the use-livecode mailing list