Hi, Domoticz's ip address on raspberry changed spontaneously. What is the cause of this?
Douwe
ip adress
Moderators: leecollings, remb0
-
- Posts: 2
- Joined: Friday 29 January 2016 12:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5877
- Location: vledder
- Contact:
- jvdz
- Posts: 2334
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ip adress
When it is using DHCP to acquire its IP address, it will get it from your DHCP server (likely your router).
So you either hardcode the IPaddress in the PI or set a fix IP address in your DHCP server for the PI's MAC address.
Jos
So you either hardcode the IPaddress in the PI or set a fix IP address in your DHCP server for the PI's MAC address.
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 2
- Joined: Friday 29 January 2016 12:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5877
- Location: vledder
- Contact:
Re: ip adress
Thanks for the reply. I'm a digibeet.
I thought the ip address automatically would be a fixed address, but not so.
I thought the ip address automatically would be a fixed address, but not so.
- jvdz
- Posts: 2334
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ip adress
When you want to fix it on your RPI you could follow this explanation in the WiKi:
https://www.domoticz.com/wiki/Preparing ... _ip-adress
Jos
https://www.domoticz.com/wiki/Preparing ... _ip-adress
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 139
- Joined: Tuesday 06 September 2016 20:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: L stab
- Location: Belgium
- Contact:
Re: ip adress
Hi. I use an ip adress reservation in my router and leave the pi on dhch.
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
-
- Posts: 21
- Joined: Monday 20 June 2016 11:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.7722
- Location: Netherlands
- Contact:
Re: ip adress
I do it the same way, is this a good solution or is it better to fix your ip within your pi?Lebo2d9 wrote:Hi. I use an ip adress reservation in my router and leave the pi on dhch.
Raspberry Pi 3 - Domoticz 3.7722 - Aeon Labs Z-Stick GEN5 - RFXcom version: Ext/1012- Logitech Harmony Elite - Homebridge - Fibaro FGMS-001-ZW5 - Fibaro FGDW-002-01 - KAKU stuff.
Re: ip adress
I use fixed IP for all my 'fixed' eg. not mobile devices.
So Raspberry gets a fixed IPaddress.
So Raspberry gets a fixed IPaddress.
-
- Posts: 139
- Joined: Tuesday 06 September 2016 20:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: L stab
- Location: Belgium
- Contact:
Re: ip adress
When you give your RPI a fix IP address and your RPI is for some reason offline,
your router can distribute the IP address that you give to your RPI.
When your RPI comes then online you have an IP confict in your network.
When you did an IP reservation in your router, the router only distribute that IP address to the MAC you specified.
You can also created a smaller DHCP pool on your router. And give your "fixed" devices a FIX address that is not in the pool.
your router can distribute the IP address that you give to your RPI.
When your RPI comes then online you have an IP confict in your network.
When you did an IP reservation in your router, the router only distribute that IP address to the MAC you specified.
You can also created a smaller DHCP pool on your router. And give your "fixed" devices a FIX address that is not in the pool.
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
- jvdz
- Posts: 2334
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ip adress
That is indeed why I use the ip-addresses x.x.x.1-99 for fixed devices and DHCP uses the range x.x.x.100-244.
This ensures you never have these type of conflicts.
So you either do it this way of have the reserve the IP address when it is part of the DHCP scope.
Jos

This ensures you never have these type of conflicts.
So you either do it this way of have the reserve the IP address when it is part of the DHCP scope.
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Who is online
Users browsing this forum: No registered users and 1 guest