# Pass IP address into template node

**URL:** <https://discourse.nodered.org/t/pass-ip-address-into-template-node/7550>\
**Category:** Dashboard\
**Created:** [4 February 2019 04:32 UTC](https://discourse.nodered.org/t/pass-ip-address-into-template-node/7550 "2019-02-04T04:32:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![janek](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@janek](https://discourse.nodered.org/u/janek)\
**Post date:** [4 February 2019 04:32 UTC](https://discourse.nodered.org/t/pass-ip-address-into-template-node/7550/1 "2019-02-04T04:32:33Z")

</div>

Hi,  
To view video from uv4l on RPi, I have the following working code inside the template node:

```auto
<iframe id="VFrame" width="640" height="480" frameborder="0" src = "http://192.168.1.8:8080/stream"></iframe> 

```

Now I want to pass the IP address from the hostIP node into the template node. The following code doesn't work. Need some help to make it work.

```auto
<iframe id="VFrame" width="640" height="480" frameborder="0" src = ""></iframe>

<script id="VScript" type="text/javascript">
$('#VFrame').src = "http://"+ msg.payload +"/stream";
</script>

```

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 February 2019 07:16 UTC](https://discourse.nodered.org/t/pass-ip-address-into-template-node/7550/2 "2019-02-04T07:16:23Z")

</div>

Please don't duplicate threads.

---

<div class="post-metadata">

**Author:** ![janek](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@janek](https://discourse.nodered.org/u/janek)\
**Post date:** [6 February 2019 01:42 UTC](https://discourse.nodered.org/t/pass-ip-address-into-template-node/7550/3 "2019-02-06T01:42:38Z")

</div>

sorry, I didn't see it
