updated ip address check and unique Id