Game cannot connect to Photon Server hosted on Amazon EC2

Meltdown
✭
I have a Unity project that was connecting perfectly fine via UDP when I connect to the Photon Cloud.
Since I want to host the game myself, I have created an Amazon EC2 instance, and followed all the instructions on setting up Photon Control on my server. I am using the latest version of Photon Server 4.
In Photon Control, I have set the IP address to public IP, and the IP is 52.63.89.164, and started the LoadBalancing (MyCloud) application.
In my Unity game configuration, I have set the option to 'Self Hosted', and set the IP as above, and for the port I have tried both 5055, and 5056.
But when I connect from my game, it just stays on 'Connecting...' and nothing happens. Eventually I get the following error... Failed to set ServerAddress. Can be set only when using HTTP.
The Photon Socket Server is in the list of Inbound rules (I assume this is all I need to setup, as according to the docs Photon Control sets up the firewall for me).
Is there something I am missing here?
Thanks
Since I want to host the game myself, I have created an Amazon EC2 instance, and followed all the instructions on setting up Photon Control on my server. I am using the latest version of Photon Server 4.
In Photon Control, I have set the IP address to public IP, and the IP is 52.63.89.164, and started the LoadBalancing (MyCloud) application.
In my Unity game configuration, I have set the option to 'Self Hosted', and set the IP as above, and for the port I have tried both 5055, and 5056.
But when I connect from my game, it just stays on 'Connecting...' and nothing happens. Eventually I get the following error... Failed to set ServerAddress. Can be set only when using HTTP.
The Photon Socket Server is in the list of Inbound rules (I assume this is all I need to setup, as according to the docs Photon Control sets up the firewall for me).
Is there something I am missing here?
Thanks
0
Best Answer
-
EDIT : Never mind, I got this working. Being an Amazon AWS Noob I realised I had to go into my AWS Console and edit my EC2 instance Security Groups configuration and add the TCP and UDP ports.0
Answers
-
Here is the PhotonCLR log on my server
https://justpaste.it/vib8
Here is the Photon-LoadBalancing-20160622.log
https://justpaste.it/vib90 -
EDIT : Never mind, I got this working. Being an Amazon AWS Noob I realised I had to go into my AWS Console and edit my EC2 instance Security Groups configuration and add the TCP and UDP ports.0
-
Hi,
I need some help to set up the photon on AWS ec2, I have connected to the instance and set up the Photon SDK, how set up the public IP and ensure that the IP address is up and running? any information will be a help.
Thank you.
0 -
Please check the docs for server setup info. Here is an explanation of the values in the config.
0