Passing msg.payload to template node

Use a debug node on the hostip node to find out what it is sending out. Then change the template node to use he correct variable. msg.payload.something.

(edit) - Having now had a look at the hostip node - it returns an array of objects - so you will probably need a function node to do some processing to extract the ip you actually want from the array.

In my case it is the 4th object in the array so would be something like {{msg.payload[3].address}}