Skip to content

Commit 18528e5

Browse files
Fix In editor Docker training (#1582)
1 parent 8a33517 commit 18528e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ml-agents/mlagents/envs/rpc_communicator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def create_server(self):
5353
self.server = grpc.server(ThreadPoolExecutor(max_workers=10))
5454
self.unity_to_external = UnityToExternalServicerImplementation()
5555
add_UnityToExternalServicer_to_server(self.unity_to_external, self.server)
56-
self.server.add_insecure_port('localhost:' + str(self.port))
56+
# 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))
5759
self.server.start()
5860
self.is_open = True
5961
except:

0 commit comments

Comments
 (0)