docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetRemoteEndpoint

    GetRemoteEndpoint(NetworkConnection)

    Get the remote endpoint of a connection (the endpoint used to reach the remote peer on the connection).

    Declaration
    public NetworkEndpoint GetRemoteEndpoint(NetworkConnection connection)
    Parameters
    Type Name Description
    NetworkConnection connection

    Connection to get the endpoint of.

    Returns
    Type Description
    NetworkEndpoint

    The remote endpoint of the connection.

    Remarks

    The returned value should not be assumed to be constant for a given connection, as it is possible for remote peers to change address during the course of a session (e.g. if a mobile client changes IP address because they're hopping between cell towers).

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023