Hey all. I've been working on getting matchmaking + dedicated server hosting working on my game using Unity's Matchmaker and Multiplay Hosting.
My matchmaking seems to be working perfectly, both of my clients request a match, I get a ticket response back from matchmaking with a port and ID in it, and I tell the clients to connect to the server with the given port and ID.
My server starts up properly, according the server logs, and then.....
Nothing happens. My clients fail to connect after 10 seconds and retry. I have them retrying 30 times, they are never able to connect.
A few questions I have:
Do I need to set a listener on my server on the port and ID that the matchmaking ticket is returning? I assumed this would happen automatically, but then I've also tried making my own listener on the server.
Do I need to have some kind of health check logic on my end for the server to keep it alive? Or will it just stay alive as long as the clients are connected?
What else could I missing here? I thought it would be as simple as setting the port and the IP and calling "StartClient()" but maybe I'm missing something here.
Thanks in advance for your feedback! I can provide code samples if necessary