Port 5004 don't open ?

I got the following message from system

Couldn’t connect to trainer on port 5004 using API version 1.0.0. Will perform inference instead. UnityEngine.Debug:Log(Object)

How could I repair it ?

Are you using mlagents-learn and getting this message?: ```
Listening on port 5004. Start training by pressing the Play button in the Unity Editor.

tks! i will try

If you are getting this message while you are developing your environment it is okay. Just ignore it. The port usage is about training the agents. You don’t need to connect to the python api to work with agents. They have their pre-trained neural networks and these nn modesl are doing all the job. If you are still getting this message when you want to connect the port and train an agent it can cause a problem. Unless ignore it.

To connect to the port, you need a command prompt which is in directory where your training_configuration yaml is. Then you can start the training by using:

mlagents-learn ./trainer_config.yaml --run-id first_run

Then you will see the Unity Logo and it will want from you to start the simulation on Unity Editor. Then your results should come like this:

6038465--652403--upload_2020-6-30_13-3-48.png