From 792eea9df210b9116e2bea1fb82ec17189ed230a Mon Sep 17 00:00:00 2001 From: jonthekiller Date: Sun, 2 Aug 2020 10:43:39 +0200 Subject: [PATCH] Change binding to 0.0.0.0 Quick fix to allow to work inside Docker instance and behind a NAT. --- core/Communication/CommunicationManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Communication/CommunicationManager.php b/core/Communication/CommunicationManager.php index 2a094bbb..9f748cda 100644 --- a/core/Communication/CommunicationManager.php +++ b/core/Communication/CommunicationManager.php @@ -293,7 +293,7 @@ class CommunicationManager implements CallbackListener, UsageInformationAble { }); }); //TODO check if port is closed - $this->socket->listen($socketPort, $this->maniaControl->getServer()->ip); + $this->socket->listen($socketPort, '0.0.0.0'); Logger::log("[CommunicationManager] Socket " . $this->maniaControl->getServer()->ip . ":" . $this->socket->getPort() . " Successfully created!"); } catch (ConnectionException $e) { @@ -315,4 +315,4 @@ class CommunicationManager implements CallbackListener, UsageInformationAble { $communication->tick(); } } -} \ No newline at end of file +}