Server: few optimisations
[Client] fix ip_changed() behavior