Log client's ip address

I have defined created_ip on the schema, I would like to log the client’s IP address.

I wonder I could use scripting to do so , is there the value of the ip of the client on ctx variable?

No, sorry. There are also no plans to do so. You can just capture the IP address in javascript or so.