Sonos IP address changing on its own

Hi,

Great plugin!
Have an issue though, I have 2 play 1 speakers in a group. The ‘driven’ speaker never gives trouble, but the main speaker’s IP address keeps changing on its own and going offline.

I set static ips for the two speakers and the bridge, and yet still it changes.

Any suggestion?

are you reserving the ip address by mac in your router ?

this is the best way to secure your device will receive the same ip all the time.

Hi, yes i reserved by mac address and removed from dhcp.

The play 1 maintains the same ip, the sonos app keeps changing on its own.
I have ip …25 reserved. It keeps switching baci to .9 or .10

[quote=“Chriskenc, post:3, topic:183018”]Hi, yes i reserved by mac address and removed from dhcp.

The play 1 maintains the same ip, the sonos app keeps changing on its own.
I have ip …25 reserved. It keeps switching baci to .9 or .10[/quote]

I’m having the same problem. IP address at .23 is reserved and this is the one the sonos is connected to, but the app in vera keeps resetting the ip address to .11. Any suggestions would be welcome.

Tb001, in my case the router setting for dhcp range didn’t hold. So my reserved .25 address was still included in the dhcp range and being given out.

Once I adjusted the dhcp range it never moved again.

[quote=“Chriskenc, post:5, topic:183018”]Tb001, in my case the router setting for dhcp range didn’t hold. So my reserved .25 address was still included in the dhcp range and being given out.

Once I adjusted the dhcp range it never moved again.[/quote]

Just to make sure I understand, your actual sonos IP address was changing, correct?

Maybe we’re having different problems? My sonos ip address is fixed and always at .23, but the app in vera keeps reverting back to .11. So in vera, I edit IP address to .23, all works fine and then a few hours later it shows up as offline again and with an IP address of .11, though the sonos is still at .23.

That’s exactly the problem I had.
I think I remember now, check in advanced. Under IP and MAC. Even though it would change in settings, it wouldn’t change in advanced, change it there.

I also removed upnp plugin. Can’t remember if that had any impact.

Let me know.

For your information, the plugin is setting the IP address only when calling actions SelectSonosDevice or SearchAndSelectSonosDevice.
So if you are not using these actions, I can tell you that the IP change is not done by the plugin.

[quote=“lolodomo, post:8, topic:183018”]For your information, the plugin is setting the IP address only when calling actions SelectSonosDevice or SearchAndSelectSonosDevice.
So if you are not using these actions, I can tell you that the IP change is not done by the plugin.[/quote]

Thanks lolodomo. Is it possible it’s reverting back to the originally entered IP address? I think at one point, before I assigned a static IP, it was on .11–I think this is how I set up the plugin initially. Now when I try to change it to .23, it seems to save for a day and then reset back to .11. Maybe I should just reinstall the plugin.

I know there is something done by the Vera at a certain time to get the MAC address and set the mac attribute for each device having the ip attribute set. Maybe, that just a pure hypothesis, this treatment tries to get the IP from the MAC address when the MAC address is set.
I would recommend that you erase the mac attribute for this device using the advanced tab, and then reload.

That discussion let me realize it would make sense to clear the mac attribute when the plugin assigns a different IP address. I will change that.

Let me know if your manual clear resolved your problem.

Resetting the MAC address solved the problem ?

Apologies for not getting back to you sooner. Yes I believe that did it. It’s been stable now for a while and not losing address.

Apologies for not getting back to you sooner. Yes I believe that did it. It’s been stable now for a while and not losing address.[/quote]

Very well. I changed the code to reset the Mac attribute when the IP attribute is set by the plugin. That will be included in the next version.