We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a33517 commit 18528e5Copy full SHA for 18528e5
ml-agents/mlagents/envs/rpc_communicator.py
@@ -53,7 +53,9 @@ def create_server(self):
53
self.server = grpc.server(ThreadPoolExecutor(max_workers=10))
54
self.unity_to_external = UnityToExternalServicerImplementation()
55
add_UnityToExternalServicer_to_server(self.unity_to_external, self.server)
56
- self.server.add_insecure_port('localhost:' + str(self.port))
+ # Using unspecified address, which means that grpc is communicating on all IPs
57
+ # This is so that the docker container can connect.
58
+ self.server.add_insecure_port('[::]:' + str(self.port))
59
self.server.start()
60
self.is_open = True
61
except:
0 commit comments