# Dynamic ip address for "node-red-contrib-gree-hvac"

**URL:** <https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450>\
**Category:** General\
**Created:** [28 June 2022 10:05 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450 "2022-06-28T10:05:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [28 June 2022 10:05 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/1 "2022-06-28T10:05:48Z")

</div>

I installed this node for my new GREE airco's and it works very well.

My problem is that I cannot give this AC a fixed IP address by DHCP reservation, so now I was wondering if I can dynamically change the ip address of the GREE node.

By means of the ARP node I can determine the IP address on base of MAC address, so then I would be able to configure the ip address of the GREE node.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [28 June 2022 10:09 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/2 "2022-06-28T10:09:53Z")

</div>

Not a solution, but may be helpful.

> [@Dynamic IP address in node TCP in & out?](https://discourse.nodered.org/t/dynamic-ip-address-in-node-tcp-in-out/64184/18):
>
> Stephen, you are totally right, it works also for the port number. I'm not sure what I did wrong last time, but this is ok now. Thanks for testing and correcting my false statement. I appreciate it. [image] [image]

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [28 June 2022 10:57 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/3 "2022-06-28T10:57:58Z")

</div>

thanks @Trying_to_learn, I already tried this in several ways, but nothing seems to work so far.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [28 June 2022 11:13 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/4 "2022-06-28T11:13:02Z")

</div>

Why can't you give the A/C unit a fixed IP address?

_Who_ is doing the DHCP?  
Should be easy enough to do.  
And sorry if the link seemed like a hand off..... I am not running on all cylinders just now but I remembered that thread and suggested it.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [28 June 2022 11:44 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/5 "2022-06-28T11:44:43Z")

</div>

@Trying_to_learn , My modem-router can only be reached and configured by means of website of my internet-provider. The most I can do there is port forwarding, that's about it. So no IP or DHCP reservation possible.

The AC units can also not be given a fixed ip address, as far as I know.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [28 June 2022 11:49 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/6 "2022-06-28T11:49:41Z")

</div>

That's a shame. (About the modem-router).

I don't understand why that is the situation, but I'm not going to stress on that.

~~Could you put a router in between the A/C and the existing router?  
I know it is more work and introducing NAT (well, you could get around it, but that is complicated) and then get the A/C to talk to your ......  
Oh, that's not going to work, either.~~  
Sorry.

I'm out of ideas sorry.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [28 June 2022 11:57 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/7 "2022-06-28T11:57:01Z")

</div>

@Trying_to_learn , Thanks, same here. I already thought about my own router or even switch to another internet provider, where I can control the router myself, but both solution are giving me many more problems and headaches.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [28 June 2022 12:45 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/8 "2022-06-28T12:45:10Z")

</div>

So where on the network are you and the A/C?

Just it seems weird the whole set up.

Ok, the "router" is some how under the control of the ISP (provider).

Thought:

 ![Screenshot from 2022-06-28 22-42-32](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/e/6eb3fc852af2f992a51cfc16b1ee7cba7ffe0daa.png)

(I'm not an artist)

The top is what is.... You can't control the IP allocation.

But if you stick a _router_ as shown in the lower part, (at your place) you can then control all the allocations and IPs to the right.

So long as the A/C is where you are, that would fix the problem.

Just a thought.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [28 June 2022 13:11 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/9 "2022-06-28T13:11:31Z")

</div>

@Trying_to_learn , Like I said, I considered that already, but in my case that would introduce new problems for me, so I ruled out that option.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [28 June 2022 13:13 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/10 "2022-06-28T13:13:30Z")

</div>

Yeah, sorry. I just now noticed you did say that.

I think it is time for me to go to bed today. 😉

It is 23:12 local here and it's been a long day.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [25 July 2022 08:20 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/11 "2022-07-25T08:20:28Z")

</div>

Finally I have a solution to the problem. @Trying_to_learn I have done what you already suggested, I put my own router behind the router of the ISP. My ISP gave me a another modem/router that was able to function in bridge-mode, so it delivers a public IP address to my own router. Now I can do whatever I want with my router. So.......problem solved!!!

---

<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:** [8 August 2022 08:20 UTC](https://discourse.nodered.org/t/dynamic-ip-address-for-node-red-contrib-gree-hvac/64450/12 "2022-08-08T08:20:35Z")

</div>

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