question

Shin avatar image
Shin asked

Failed to connect to 172.20.0.11 port 56001: Timed out

Super Frustrating when trying to test the multiplayer locally with Unity3D and Mirror, I tried to run LocalMultiplayerAgent on container mode and always stuck in "Waiting for heartbeats from the game server...". Trying to fix this in almost a week but no luck even I follow step by step tutorial on your site.

- Modify MultiplayerSettings.json to my settings

- Using Windows 10 Pro

- Make sure Docker is running

- Run Setup.ps1

- Turn-off firewall

- Run LocalMultiplayerAgent.exe

What else could go wrong??

Here's my log:

```

Mono path[0] = 'C:/Assets/PlayFabTest_Data/Managed' Mono config path = 'C:/Assets/MonoBleedingEdge/etc' Initialize engine version: 2020.3.5f1 (8095aa901b9b) [Subsystems] Discovering subsystems at path C:/Assets/PlayFabTest_Data/UnitySubsystems Forcing GfxDevice: Null GfxDevice: creating device client; threaded=0 NullGfxDevice: Version: NULL 1.0 [1.0] Renderer: Null Device Vendor: Unity Technologies FMOD initialized on nosound output Begin MonoManager ReloadAssembly - Completed reload, in 0.305 seconds ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable) Microsoft Media Foundation video decoding to texture disabled: graphics device is Null, only Direct3D 11 and Direct3D 12 (only on desktop) are supported. ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable) UnloadTime: 1.476100 ms NetworkManager created singleton (DontDestroyOnLoad) Mirror | mirror-networking.com | discord.gg/N9QVxbM AWAKE MESSAGE TelepathyTransport initialized! Mirror: adding Network[Early/Late]Update to Unity... http://172.20.0.11:56001/v1/sessionHosts/d7385d71d3d0dfa038fc623762cf87bdc0bce5325b6a4ea7bc999e17018439a0/heartbeats d7385d71d3d0dfa038fc623762cf87bdc0bce5325b6a4ea7bc999e17018439a0 C:\GameLogs\ 0 PlayFabMultiplayerAgentView awake Server: Start port=9000 Server started listening Server: listening port=9000 Timer:1.018092 - Max:1 state: PlayFab.MultiplayerAgent.Model.HeartbeatRequest, payload: {"CurrentGameState":"StandingBy","CurrentGameHealth":null,"CurrentPlayers":[]} Curl error 7: Failed to connect to 172.20.0.11 port 56001: Timed out CurrentError: Cannot connect to destination host - bd1d404f-bd34-4c03-bd7c-da6312e6b686 Retrying heartbeat in 30s Cannot connect to destination host Timer:30.03261 - Max:30 state: PlayFab.MultiplayerAgent.Model.HeartbeatRequest, payload: {"CurrentGameState":"StandingBy","CurrentGameHealth":null,"CurrentPlayers":[]} Curl error 7: Failed to connect to 172.20.0.11 port 56001: Timed out CurrentError: Cannot connect to destination host - cc003aa5-addd-442c-ab7b-fd682f48b9bd Retrying heartbeat in 5m Cannot connect to destination host

```

unity3dmultiplayer
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

·
Seth Du avatar image
Seth Du answered

"Waiting for heartbeats from the game server" means the executable is not initialized properly. Have you check the "Server build" option in Unity Build Settings? In addition, have you tested the build with RunContainer set false in the configuration file?

1 comment
10 |1200

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

Shin avatar image Shin commented ·

Nvm I just redownload the mvagent and it works, not sure why the downloaded release got some issue.

0 Likes 0 ·

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.