🌐

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:

{
"match_id": "n76f415773f543d9a009c04d8c78acc4",
"status": "running",
"region": "us-east",
"instance_type": "small",
"server_arguments": "",
"ssl_enabled": true,
"ip": "108.61.23.126",
"ports": {
"443": 31722,
"7777": 31224,
"7778": 30501
},
"server_url": "108-61-23-126.games.playflow.cloud",
"playflow_api_version": 9,
"server_tag": "production",
"server_version": 67
}
​

🚀 Steps to Connect

  1. 1.
    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 is 108-61-23-126.games.playflow.cloud.
  2. 2.
    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.
  3. 3.
    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 or 108-61-23-126.games.playflow.cloud as the Network Address, and 31224 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.
  1. 1.
    Identify the Network Address: Since SSL connections require the use of a URL, identify the server URL from your deployed server's information.
  2. 2.
    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 is 31722. This is the port you'll use for secure WebSockets connections.
  3. 3.
    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, and 31722 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 modified 4mo ago