Docker instances not connecting to AMP metrics

Note - If you do not fill in every section below, your post won’t be answered - you must provide the steps you have followed so far and the actions you’ve already taken. Make sure to remove this notice from your post too.

OS Name/Version: Windows 10 Professional

Product Name/Version: 2.5.0.12 - 20240531.1, Docker instance (Minecraft Bedrock) 2.5.0.12 (Callisto), built 31/05/2024

Problem Description: Docker instance appears to not be able to report metrics to AMP running outside of docker.

2024-05-31 15:46:47 [Info] AMPStart for Docker - v23.07.1
2024-05-31 15:46:47 [Info] Performing first-time container setup…
2024-05-31 15:46:47 [Info] Container setup complete.
2024-05-31 15:46:47 [Info] No missing dependencies to install.
2024-05-31 15:46:48 [Info] AMP Instance Manager v2.5.0.4 built 04/04/2024 18:29
2024-05-31 15:46:48 [Info] Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
2024-05-31 15:46:54 [Info] Certificates have been synced.
2024-05-31 15:46:59 [20:46:59] [Core Info/1] : Starting AMP version 2.5.0.12 (Callisto), built 31/05/2024 14:46
2024-05-31 15:46:59 [20:46:59] [Core Info/1] : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
2024-05-31 15:46:59 [20:46:59] [Core Info/1] : Running in a Docker environment.
2024-05-31 15:46:59 [20:46:59] [Core Info/1] : OS: Linux / x86_64
2024-05-31 15:46:59 [20:46:59] [Core Info/1] : CPU: Intel(R) Xeon(R) Platinum 8173M CPU @ 2.00GHz (28C/56T)
2024-05-31 15:46:59 [20:46:59] [Core Info/1] : RAM: 64109MB
2024-05-31 15:46:59 [20:46:59] [Core Info/1] : AMP Instance ID: 0f72b296-7b71-4f0f-88ee-ec413fc287f1
2024-05-31 15:47:01 [20:47:01] [Loader Info/1] : Loaded GenericModule version 1.0.0.0 by CubeCoders Limited
2024-05-31 15:47:01 [20:47:01] [Core Info/1] : Metrics publishing is enabled at udp://localhost:12821.
2024-05-31 15:47:01 [20:47:01] [Loader Info/1] : Loaded FileManagerPlugin by CubeCoders Limited
2024-05-31 15:47:01 [20:47:01] [Loader Info/1] : Loaded EmailSenderPlugin by CubeCoders Limited
2024-05-31 15:47:01 [20:47:01] [Loader Info/1] : Loaded WebRequestPlugin by CubeCoders Limited
2024-05-31 15:47:01 [20:47:01] [Loader Info/1] : Loaded LocalFileBackupPlugin by CubeCoders Limited
2024-05-31 15:47:02 [20:47:02] [Loader Info/1] : Loaded CommonCorePlugin by CubeCoders Limited
2024-05-31 15:47:02 [20:47:02] [Loader Info/1] : GenericModule requests dependency steamcmdplugin…
2024-05-31 15:47:02 [20:47:02] [Loader Info/1] : Loaded steamcmdplugin by CubeCoders Limited
2024-05-31 15:47:02 [20:47:02] [Loader Info/1] : GenericModule requests dependency RCONPlugin…
2024-05-31 15:47:02 [20:47:02] [Loader Info/1] : Loaded RCONPlugin by CubeCoders Limited
2024-05-31 15:47:02 [20:47:02] [Core Info/1] : Licence Present: AMP Advanced Edition
2024-05-31 15:47:02 [20:47:02] [FileManager Notice/1] : No SSH keypair available for embedded server, generating new keypair…
2024-05-31 15:47:02 [20:47:02] [FileManager Notice/1] : Generated new keypair with fingerprint CTRd056/hleUaKA56KoY6A4kgZFQNwyxgAV4PObCH1k=
2024-05-31 15:47:02 [20:47:02] [FileManager Notice/1] : Using keypair with fingerprint CTRd056/hleUaKA56KoY6A4kgZFQNwyxgAV4PObCH1k=
2024-05-31 15:47:03 [20:47:02] [FileManager Info/1] : SFTP Server started on 0.0.0.0:2224
2024-05-31 15:47:03 [20:47:03] [Webserver Info/1] : Websockets are enabled.
2024-05-31 15:47:03 [20:47:03] [Webserver Info/1] : Webserver started on http://0.0.0.0:8083
2024-05-31 15:47:03 [20:47:03] [Logger Info/12] : RouterTimer@10Hz with 2 jobs started
2024-05-31 15:47:03 [20:47:03] [Core Info/1] : Checking for AMP updates…
2024-05-31 15:47:03 [20:47:03] [Core Info/1] : Startup mode is UpdateAndStart.
2024-05-31 15:47:04 [20:47:04] [Core Info/15] : AMP is up to date.
2024-05-31 15:47:06 [20:47:06] [Core Error/16] : SocketException
2024-05-31 15:47:06 [20:47:06] [Core Error/16] : [0] (SocketException) : Connection refused
2024-05-31 15:47:06 [20:47:06] [Core Error/16] : at Net.Sockets.Socket.Send (Byte buffer, Int32 offset, Int32 size, Net.Sockets.SocketFlags socketFlags)
2024-05-31 15:47:06 at Net.Sockets.UdpClient.Send (Byte dgram, Int32 bytes)
2024-05-31 15:47:06 at ModuleShared.MetricsInfoPublisher.UpdateMetrics ()
2024-05-31 15:47:16 [20:47:16] [Core Error/14] : SocketException
2024-05-31 15:47:16 [20:47:16] [Core Error/14] : [0] (SocketException) : Connection refused
2024-05-31 15:47:16 [20:47:16] [Core Error/14] : at Net.Sockets.Socket.Send (Byte buffer, Int32 offset, Int32 size, Net.Sockets.SocketFlags socketFlags)
2024-05-31 15:47:16 at Net.Sockets.UdpClient.Send (Byte dgram, Int32 bytes)
2024-05-31 15:47:16 at ModuleShared.MetricsInfoPublisher.UpdateMetrics ()

Steps to reproduce:

  1. Installed AMP
  2. Configured AMP to use Docker for new instances per guide on CubeCoders

Actions taken to resolve so far:

  1. Enabled host networking in Docker to check if Docker was not able to communicate to other programs on computer
  2. Changed metrics port in AMP to 12821 in case something was using port 12820
  3. Changed default auth server from recommend in Docker setup guide back to localhost to see if this was a possible issue.