Your myPublicIP can't return the value. When your scene starts it runs in a "main process". The http request creates a new process and will call your success/error functions in that process. It look like this (I have added a debug("H") last in the scene) Please login or register to see this attachment. Normally when we think about process we imagine them running in parallell. However Lua have co-operative processes, or as they are called "coroutines".   Note that coroutines/processes
    • Thanks
    • Like