Setting ip address in local peer.