docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum ConnectionMode

    ConnectionMode is used to differentiate between a local (Listen) or public (Publish) connection when direct connection as the ConnectionType is used.

    Namespace: Unity.Multiplayer.Widgets
    Assembly: Unity.Multiplayer.Widgets.Core.dll
    Syntax
    public enum ConnectionMode

    Fields

    Name Description
    Listen

    Local connection. This is helpful for testing on the same machine or a local network.

    ListenIp and PublishIp are the same. They default to "127.0.0.1".

    Publish

    Specify the listenIp and publishIp.

    To listen on all interfaces, use 0.0.0.0 as the listenIp and specify the external/public IP address that clients should sue as the publishIp.

    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)