Have a look at the KiXtart builtin macros.

@IPADDRESS0 will do in most cases.