"No connection could be made because the target machine actively refused it"
Hello! I am experiencing the following problem while trying to follow the 3DBall tutorial. I can run the Scene in player mode no problem, however there seems to be a problem with communication between jupyter and Unity3D. "No connection could be made because the target machine actively refused it"

This is how I build:
#
Brain type - external:

Can anyone provide any suggestion?
Thanks for the attention!
Hi @FNRocha just to clarify, you launched an instance of the build using the Jupyter Notebook, right?
If that's not the case, maybe a firewall is blocking the socket communication.
Yeah, I am using Jupyter notebook, I thought it could be firewall at first too, I tried disabling the windows firewall and retried but it still didn't work.
I had the same problem and error because I launched 2 python Notebook on the same 3dBall.exe. Try to open and run just Basics.ipynb or PPO.ipynb.
I'm having a similar issue. It looks like my Unity environment is closing as soon as the connection is made.
i closed everything and started again and it worked!!it seems that backlog file is getting full.
I still seem to be experincing the same error message, I have tried the steps above i.e. closing the notebook and everything, even rebuilt the 3dbal binary, the same error keeps appearing.
I closed everything, downloaded a new version of ML Agents, made sure everything was coordinating using that version of ML Agents, and I was able to get it to go again (re-bind everything with the most current version and try again). Not really much of a "solution", but it got things to work.
I have tried those steps, but it still doesn't work, most of the time the unity app fails to launch from within the Jupyter notebook. It says (Not Responding) on the app window, even though the notebook cell says the cell ran successfully.
open 'environments.py 'and add '+ 10' or any number to 'self.port = base_port + worker_id'.You might be running something on old port. and if issue still stays than give full traceback.
Have tried updating the environment.py file and still experiencing the same issues, either the app doesn't respond or the message "No connection could be made because the target machine actively refused it" is displayed if the unity exe manages to open and run.
check that firewall isn't blocking it.if it doesn't work remove everything and see some tutorials then follow one with most details and if it still doesn't work just run it in someone else's computer and note the steps that you are taking and learn there.
Heads up: Game crashed and gave me this error when the memory size was out of synch with the MakeMemory method in my Decision class
Thanks for reaching out to us. Hopefully you were able to resolve your issue. We are closing this due to inactivity.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.