Over 11,000 five-star assets
Rated by 85,000+ customers
Supported by 100,000+ forum members
Every asset moderated by Unity
1/6
Direct Connection Matchmaking is designed to allow direct connection matchmaking through the use of UPnP, and a MySQL based matchmaking server.
Advantages:
• Establishes a direct connection if the host's router supports UPnP (The vast majority do).
• Direct connection bypasses Unity's relay servers, which saves you money and reduces latency.
• Only a MySQL server is needed to facilitate matchmaking, which is cheap / free compared to other server / database types.
• If the host's router doesn't support UPnP, the Unity relay service will be automatically used.
• MySQL database PHP code is secure and protected against SQL injection. MD5 hashing is used for transmitted data. Passwords for servers are never sent or stored in plain text.
• Documented API and instruction manual.
• Tested on Windows standalone and Android builds. It should work on other build platforms except WebGL.
How it works:
1. The host searches for a connected UPnP compatible device (router) when starting a match.
2. If found, a suitable port is determined and opened using UPnP.
3. The data needed for clients to join the match is sent to the MySQL server and listed.
4. Clients query the MySQL server for a suitable match and join through direct connection.
5. If a UPnP compatible device is not found, then a match will be created using Unity’s relay servers.
6. Both types of matches can be joined.
What is needed:
• A server running MySQL, and with PHP access.
Advantages:
• Establishes a direct connection if the host's router supports UPnP (The vast majority do).
• Direct connection bypasses Unity's relay servers, which saves you money and reduces latency.
• Only a MySQL server is needed to facilitate matchmaking, which is cheap / free compared to other server / database types.
• If the host's router doesn't support UPnP, the Unity relay service will be automatically used.
• MySQL database PHP code is secure and protected against SQL injection. MD5 hashing is used for transmitted data. Passwords for servers are never sent or stored in plain text.
• Documented API and instruction manual.
• Tested on Windows standalone and Android builds. It should work on other build platforms except WebGL.
How it works:
1. The host searches for a connected UPnP compatible device (router) when starting a match.
2. If found, a suitable port is determined and opened using UPnP.
3. The data needed for clients to join the match is sent to the MySQL server and listed.
4. Clients query the MySQL server for a suitable match and join through direct connection.
5. If a UPnP compatible device is not found, then a match will be created using Unity’s relay servers.
6. Both types of matches can be joined.
What is needed:
• A server running MySQL, and with PHP access.
Direct Connection Matchmaking
(not enough ratings)
48 users have favourite this asset
(48)
$5
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
Secure checkout:

License agreement
Standard Unity Asset Store EULALicense type
File size
858.7 KB
Latest version
1.1
Latest release date
Jul 9, 2018
Original Unity version
2018.1.3
Support
Visit siteRelated keywords
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Language
Feedback
Partners Program
PartnersUSD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR