How To Find The Internal IP Of Your Device


How To Find The Internal IP Of Your Device with Livecode.

# From: https://forums.livecode.com/viewtopic.php?f=53&t=29919&start=15

function getInternalIP
    local tInterfacesList

    put the networkInterfaces into tInterfacesList

    filter lines of tInterfacesList without "0.0.0.0"
    filter lines of tInterfacesList without "127.0.0.1"

    return tInterfacesList
end getInternalIP

------------- Small version ------------------
function localIP  # returns IP address(es) of local computer
    set the itemDel to colon
    return hostNameToAddress(item 1 of the address)
end localIP


FerrusLogic is it!

Payeer