🌐Connecting to your Game Server
Learn how to connect to PlayFlow game servers with this quick guide.
📝 Prerequisites
Deployed server's IP address or server URL.
Deployed server's port mapping details.
Access to the network settings of your game client's Network Manager and Network Transport.
Example Server JSON:
🚀 Steps to Connect
Identify the Network Address: From your deployed server's information, find either the IP address or the server URL, depending on which you prefer to use. For instance, in the provided JSON, the IP address is
108.61.23.126
, and the server URL is108-61-23-126.games.playflow.cloud
.Determine the assigned port: Look at the "ports" dictionary in your server's information. Each key-value pair represents an original port and its corresponding assigned port. Find the assigned port that corresponds to the port your game client uses.
Update Network Manager and Network Transport settings: In your game client's Network Manager, set the Network Address to the IP address or server URL you identified. In your Network Transport settings, replace the existing port with the assigned port you found. In this case, you would input either
108.61.23.126
or108-61-23-126.games.playflow.cloud
as the Network Address, and31224
as the port for your Network Transport.
🔒 Steps to Connect using SSL for WebGL Clients
If your game client is a WebGL client and SSL is enabled on your server, you will need to use the specific SSL port to establish a secure connection.
Identify the Network Address: Since SSL connections require the use of a URL, identify the server URL from your deployed server's information.
Determine the SSL port: When SSL is enabled, the port for WebGL clients is consistently the one corresponding to the
443
key in the "ports" dictionary. In the provided JSON, the assigned SSL port is31722
. This is the port you'll use for secure WebSockets connections.Update Network Manager and Network Transport settings: Set the Network Address to the server URL you identified, and replace the existing port in your Network Transport settings with the SSL port. In this case, you would input
108-61-23-126.games.playflow.cloud
as the Network Address, and31722
as the port.
📌 Note:
The specifics of setting the Network Address and the port for your Network Transport may vary depending on your game client's requirements.
For any issues or further questions, please consult our FAQ section or contact our support team.
Last updated