question

__pp__ avatar image
__pp__ asked

Hosting server MLAPI Unity

Hi,

Any sample to host the server in playfab made with Unity + MLAPI?

I tried but i am not able to getting any response from Playfab Server.

My game works on local instance, lan connection.

I have found many samples based on Unity + Mirror.

Please do help.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
__pp__ avatar image
__pp__ answered

Fixed through UDP

3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

craig-greenway avatar image craig-greenway commented ·

Setting the build to use UDP port 7777 and setting the server listen port to 7777 in Unity fixed this, the public port still needs to be set when you get that back from the GetMatch result but after all the headscratching, you've helped me get past the first step so THANK YOU

1 Like 1 ·
craig-greenway avatar image craig-greenway commented ·

@__pp__ when you say fixed through TCP, where do you mean? I can get MLAPI to work locally when running not in a container, but running locally in a container fails to connect and can't connect to the server instance either

0 Likes 0 ·
__pp__ avatar image __pp__ craig-greenway commented ·

Sorry for the typo.
UDP and port 7777 will connect the client to the Playfab server build.

I havent tried with the local container though

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.