Skip to content

Secure connection over Relay UTP #1737

@Daniel4144

Description

@Daniel4144

Hi,
I am not able to establish a secure connection for NGO with the Relay Unity Transport. I have pretty much copied the code samples from the relay documentation which works fine, but if I modify the code to use a secure connection, host and client do not connect (no errors or warnings). I only added the isSecure=true parameter to the SetRelayData methods.

I had the same problem without the isSecure flag in the past in one specific network (the problem was the firewall blocking), but now it does not work in any network, so I thought maybe I am missing something else.
I found very little documentation about the encryption, but I think the setup should be handled by the UnityTransport component?

Can someone confirm if this should work or does work for them in the current version?

Also, #1197 mentions DTLS without relay. How do you setup that? Only the SetRelayData methods contain a parameter for secure connection.

Unity 2021.2.10f1
NGO Version 1.0.0-pre.5
UTP for NGO Version 1.0.0-pre.5
Relay Version 1.0.1-pre.3
Platform: Windows 11

Sample project:
test-ngo-relay.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:supportQuestions or other support

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions