DRL_based_SelfDrivingCarControl icon indicating copy to clipboard operation
DRL_based_SelfDrivingCarControl copied to clipboard

SocketException: Unable to connect because the target computer actively refused.

Open xiaobaichongchongchong opened this issue 5 years ago • 4 comments

hello,Can you help me solve this problem?Thanks very much. I really don't know where this path(D:\Github\ML_Agent_Jeju_Simulator\ML_Agent_Jejucamp2017\Assets\Scripts) comes from.

SocketException: Unable to connect because the target computer actively refused.

at System.Net.Sockets.Socket.Connect (System.Net.IPAddress[] addresses, System.Int32 port) [0x000c3] in <4b9f316768174388be8ae5baf2e6cc02>:0 at System.Net.Sockets.Socket.Connect (System.String host, System.Int32 port) [0x00007] in <4b9f316768174388be8ae5baf2e6cc02>:0 at ExternalCommunicator.InitializeCommunicator () [0x000b2] in D:\Github\ML_Agent_Jeju_Simulator\ML_Agent_Jejucamp2017\Assets\Scripts\ExternalCommunicator.cs:128 at Academy.InitializeEnvironment () [0x00094] in D:\Github\ML_Agent_Jeju_Simulator\ML_Agent_Jejucamp2017\Assets\Scripts\Academy.cs:235 at Academy.Awake () [0x00002] in D:\Github\ML_Agent_Jeju_Simulator\ML_Agent_Jejucamp2017\Assets\Scripts\Academy.cs:208

(Filename: <4b9f316768174388be8ae5baf2e6cc02> Line: 0)

xiaobaichongchongchong avatar Jul 23 '18 16:07 xiaobaichongchongchong

Oh.. that is path of my simulator code. When does this problem occurs?

Kyushik avatar Jul 24 '18 07:07 Kyushik

It tries to connect your computer when you use this simulator at the first time. Maybe there is possibility that you refused that connection.

Kyushik avatar Jul 24 '18 07:07 Kyushik

Thank you for your reply. Today, I am experimenting on two computers, follow the steps to set up the environment on the new computer, and then run, this problem will occur, restart the computer, follow the steps, succeed, close the anaconda, then open the anaconda, The above problem occurs when running. So, if this happens, I can only restart the computer. I am looking forward to your reply, and if I want to get the distance data between the car and other vehicles, what should I do?

xiaobaichongchongchong avatar Jul 25 '18 06:07 xiaobaichongchongchong

I think your computer setting is automatically blocking the socket connection. I think you should allow this socket connects to your computer. Maybe, you can find that setting on the control panel. Also, for now it is hard to get all the coordinate data of other vehicles. I will add that and let you know. 😄

Kyushik avatar Jul 26 '18 01:07 Kyushik