The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Having Issues Connecting To Master Due To 'Disconnect By Server Logic'

2021-08-04 15:32:52

I'm trying to do a simple connect with PUN2 in Unity and I get disconnected due to 'Disconnect By Server Logic'. Before disconnecting, this is what shows in my console:

Server sent disconnect. PeerId: 955 RTT/Variance:70/26 reason byte: 1 peerConnectionState: Connected

My script is simply this:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;

public class TestConnect : MonoBehaviourPunCallbacks
void Start()
//PhotonNetwork.GameVersion = "0.1.1";


Can anyone provide some assistance with this? I feel like I have done every check but still no success.



2021-08-06 13:55:44

I guess there is more in your console log than this. The "Get Help" page should explain how to get more info. Also the "Analyzing Disconnects" topic may be of interest...

Try our PUN Basics Tutorial. It should get you online.

2021-08-07 16:00:49

Thanks for the info/links. Looks like the issue arises from the authentication. As I am authenticating with Playfab, I take it my Custom Auth setup isn't quite right. I will try the standard Authentication setup and see how I go.

Back to top