Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

ArgumentException: Can't use encryption yet. Exchange keys first.

$
0
0
Hi,

I am trying to set up my game again, that was recently wiped from my dedicated server. It was previously set up by my developer but he is busy now and won't be able to do it for awhile so I am trying to set it up myself.

I think I connected successfully to my server with photon control as I managed to connect to the game (as whenever I don't have photon control running I would get an error and the login page won't popup, so I believe it is connecting properly) but when I try to login I get this error in Unity:


ArgumentException: Can't use encryption yet. Exchange keys first.
ExitGames.Client.Photon.PhotonPeer.OpCustom (ExitGames.Client.Photon.OperationRequest operationRequest, Boolean sendReliable, Byte channelId, Boolean encrypt)
DEngine.Unity.Photon.Connecting.SendOperation (ExitGames.Client.Photon.OperationRequest request, Boolean sendReliable, Byte channelId, Boolean encrypt)
DEngine.Unity.Photon.PhotonManager.SendOperation (ExitGames.Client.Photon.OperationRequest request, Boolean sendReliable, Byte channelId, Boolean encrypt)
DEngine.Unity.Photon.PhotonController.SendOperation (Byte opCode, System.Collections.Generic.Dictionary`2 parameters, Boolean sendReliable)
WorldmapNet.SendSignIn (System.String username, System.String password) (at Assets/Scripts/Network/WorldmapNet.cs:1199)
LoginManager.Login_click () (at Assets/Scripts/LoginManager.cs:125)
UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) (at /Users/builduser/buildslave/unity/build/Runtime/Export/UnityEvent.cs:153)
UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) (at /Users/builduser/buildslave/unity/build/Runtime/Export/UnityEvent.cs:634)
UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) (at /Users/builduser/buildslave/unity/build/Runtime/Export/UnityEvent.cs:769)
UnityEngine.Events.UnityEvent.Invoke () (at /Users/builduser/buildslave/unity/build/Runtime/Export/UnityEvent_0.cs:53)
UnityEngine.UI.Button.Press () (at /Users/builduser/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:35)
UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at /Users/builduser/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:44)
UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at /Users/builduser/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:52)
UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) (at /Users/builduser/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:269)
UnityEngine.EventSystems.EventSystem:Update()


I am not a coder so I'm not sure what to do, managed to set up PhotonControl in my dedicated server and managed to get it running, also have allowed the required ports from this list on my server:

https://doc.photonengine.com/en-us/realtime/current/reference/tcp-and-udp-port-numbers

The game also requires MySQL of which I installed and managed to execute the backup database. Does it require XAMPP for it to work fully?

I think it has to do something with the database not connecting. Also when I connect to the MySQL Administrator I am logging in as 127.0.0.1 which is the localhost. In the server information the server IP is 127.0.0.1 and in the Client IP it is my dedicated server IP, I was wondering if the server IP is meant to be my dedicated server IP for it work online?

Hope you guys can help me out.

Thank you!

Viewing all articles
Browse latest Browse all 1557