docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetHostRelayData

    SetHostRelayData(string, ushort, byte[], byte[], byte[], bool)

    Set the relay server data for the host.

    Declaration
    public void SetHostRelayData(string ipAddress, ushort port, byte[] allocationId, byte[] key, byte[] connectionData, bool isSecure = false)
    Parameters
    Type Name Description
    string ipAddress

    IP address or hostname of the relay server.

    ushort port

    UDP port of the relay server.

    byte[] allocationId

    Allocation ID as a byte array.

    byte[] key

    Allocation key as a byte array.

    byte[] connectionData

    Connection data as a byte array.

    bool isSecure

    Whether the connection is secure (uses DTLS).

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)