- Home /
Question by
BeckamWhite · Sep 17, 2019 at 04:02 PM ·
networkingphotonpun
[PUN2] Unable To Connect to Master Server
Hi,
Posted this on Photon forums but I am not getting any help so I'll try my luck here.
For the past 2 months I have been working on a FPS Multiplayer game with PUN 2.
It was working fine until about 30 mins ago when all of the sudden, I hit play and I would not connect to
the master server. I have spent this half hour debugging with pun logging on full and I have come to no
resolve.
If anybody could help me it would be greatly appreciated!
P.S. if you need anything, just ask.
Unity Version: 2019.1.8f1
PUN Version: Pun 2.14
PUN Server Settings:
https://imgur.com/a/98eHrpV
My Script:
https://imgur.com/a/TdEiXUo
My Script:
public void Awake()
{
//PhotonNetwork.AutomaticallySyncScene = true;
}
public void Login()//, string email, int rank)
{
//var _tempData = Instantiate(tempData, Vector3.zero, Quaternion.identity);
//_tempData.GetComponent().username = usernameInput.text;
//loginButton.gameObject.SetActive(false);
Connect();
}
public void Connect()
{
PhotonNetwork.GameVersion = "0.0.0";
PhotonNetwork.ConnectUsingSettings();
Debug.Log("Attemping to connect!");
}
public override void OnConnectedToMaster()
{
Debug.Log("Connected to Master Server");
//main.SetActive(false);
//PhotonNetwork.JoinLobby();
//rooms.SetActive(true);
base.OnConnectedToMaster();
}
Comment
Have you tried this from another network and/or computer?