# Goto local ip address and open page

**URL:** <https://discourse.nodered.org/t/goto-local-ip-address-and-open-page/59396>\
**Category:** General\
**Created:** [5 March 2022 11:22 UTC](https://discourse.nodered.org/t/goto-local-ip-address-and-open-page/59396 "2022-03-05T11:22:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [5 March 2022 11:22 UTC](https://discourse.nodered.org/t/goto-local-ip-address-and-open-page/59396/1 "2022-03-05T11:22:43Z")

</div>

Hi,  
is there a way i can redirect to a local ip address for example [http://192.168.0.152](http://192.168.0.152) and open the page for viewing from node red. the address displays my external camera.

I am sure there is a way but not sure which command to use.

i do not want to display the image in node-red just open a separate window at that ip address.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [5 March 2022 11:34 UTC](https://discourse.nodered.org/t/goto-local-ip-address-and-open-page/59396/2 "2022-03-05T11:34:22Z")

</div>

Do you mean a hyperlink that opens `http://192.168.0.152 `? on the dashboard?

Can you explain further what you are trying to achieve?

Perhaps include a screenshot with annotations if you are struggling to explain?

---

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [5 March 2022 11:38 UTC](https://discourse.nodered.org/t/goto-local-ip-address-and-open-page/59396/3 "2022-03-05T11:38:55Z")

</div>

hi @Steve-Mcl ,

I use uibuilder and want to include a switch that does exactly that, opens [http://192.168.0.152](http://192.168.0.152) to allow a quick view of the outside camera ,  
and thanks for your quick reply 🙂  
is it also possible from within node-red as well ?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [5 March 2022 11:43 UTC](https://discourse.nodered.org/t/goto-local-ip-address-and-open-page/59396/4 "2022-03-05T11:43:55Z")

</div>

> [@magicman](#):
>
> include a switch

what is a "switch"? Do you mean a button `<button ... />` or a hyperlink `<a ... />`?

A hyperlink is as simple as adding `<a href="http://192.168.0.152" target="_blank">my camera</a>` in your HTML (not really a node-red question, more a general HTML question TBH) - unless i am still misunderstanding your question?

> [@magicman](#):
>
> is it also possible from within node-red as well ?

You mean in the node-red editor? Not really no. (though you could hack the src)

---

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [5 March 2022 11:46 UTC](https://discourse.nodered.org/t/goto-local-ip-address-and-open-page/59396/5 "2022-03-05T11:46:38Z")

</div>

hi @Steve-Mcl  
yes can see how do do the hyperlink in uibuilder now but as you say not in the editor, was just asking in case i was missing the obvious thanks for your time.

---

<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:** [5 March 2022 13:42 UTC](https://discourse.nodered.org/t/goto-local-ip-address-and-open-page/59396/6 "2022-03-05T13:42:14Z")

</div>

uibuilder already includes a link to the defined page. Open the settings panel in the Editor and the link is right there.

But otherwise, the editor is not a Dashboard. Instead create a simple root page somewhere and use it as a menu. You can also use uibuilder's details link which shows all of the uibuilder url's you've defined along with a load of other details.

Hmm, would an index node be useful? Something that returns a list of defined Node-RED endpoints?

---

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [5 March 2022 16:23 UTC](https://discourse.nodered.org/t/goto-local-ip-address-and-open-page/59396/7 "2022-03-05T16:23:22Z")

</div>

thanks for that @TotallyInformation , i know i would find it useful 😉

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 March 2022 16:23 UTC](https://discourse.nodered.org/t/goto-local-ip-address-and-open-page/59396/8 "2022-03-19T16:23:50Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
