Show / Hide Table of Contents

# Interface IPeerAddressChangedListener

###### Namespace: LiteNetLib

###### Assembly: LiteNetLib.dll

##### Syntax

    public interface IPeerAddressChangedListener

### Methods

#### OnPeerAddressChanged(NetPeer, IPEndPoint)

Called when peer address changed (when AllowPeerAddressChange is enabled)

##### Declaration

    void OnPeerAddressChanged(NetPeer peer, IPEndPoint previousAddress)

##### Parameters

Type | Name | Description
--- | --- | ---
NetPeer | peer | Peer that changed address (with new address)
IPEndPoint | previousAddress | previous IP