Removes the local IP socket and replaces it with a peer provided one.