View: 3162|Reply: 8

RaspTank - WinError 10061 target machine actively refused

[Copy link]

2

Threads

6

Posts

26

Credits

Newbie

Rank: 1

Credits
26
Post time 2019-12-30 22:31:28 | Show all posts |Read mode
This is for a RaspTank recently built, everything installed per what directions I could find.  The RPi server.py does not autostart, I have to SSH into the Pi and "sudo python3 server.py".  I get the following:
Loading...
Setting up server...
192.xxx.xxx.xxx {actual Ip address listed}
waiting for connection...

Then I go to a PC with all the python software loaded on it.  I find the client.py file and run it, but I get the following at the end of a bunch of statements:

ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

Help!?

Thanks
Reply

Use magic Report

0

Threads

1

Posts

4

Credits

Newbie

Rank: 1

Credits
4
Post time 2020-1-2 10:53:41 | Show all posts
Please follow the video on setting up the software. https://www.youtube.com/watch?v=5JPhDjejOYs
Reply

Use magic Report

2

Threads

6

Posts

26

Credits

Newbie

Rank: 1

Credits
26
 Author| Post time 2020-1-4 19:12:25 | Show all posts
Solved.  It helps to use the RaspTank.py file that comes in the rasptank project zip.  Maybe I'm just a noob, but a suggestion would be to improve the instructions to explain this.
Reply

Use magic Report

3

Threads

6

Posts

29

Credits

Newbie

Rank: 1

Credits
29
Post time 2020-1-10 03:33:35 | Show all posts
I get the same error cannot connect when using rasptank.py but if I run rasptankTest.py I get connected.
Have no idea why rasptank.py will not connect.  Get
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it.
Any suggestions.  I have went thru both software videos.
Reply

Use magic Report

3

Threads

6

Posts

29

Credits

Newbie

Rank: 1

Credits
29
Post time 2020-1-17 05:46:29 | Show all posts
I finally just rebuilt to SD card and went thru the second setup video.  It seemed like when I ran rasptank setup.py it did more stuff than the first time I did it.
Anyway, it is not working.
Reply

Use magic Report

0

Threads

1

Posts

6

Credits

Newbie

Rank: 1

Credits
6
Post time 2020-7-15 14:06:49 | Show all posts
This exception message says you're trying to connect to the same host ( 127.0.0.1 ), while you're stating that your server is running on a different host. This 127.0.0.1 represents a 'loopback' . It allows the computer to communicate with itself via network protocol .

Dns.GetHostEntry(IPAddress.Loopback).HostName returns the host name of your machine. When you pass a host name to TcpClient , it will resolve it to one or more IP addresses using Dns.GetHostAddresses(hostName) . This includes the public and local IP addresses of your machine (e.g. 192.168.12.10), but not 127.0.0.1 (loopback address). So your client is trying to connect to any of the non-loopback addresses of your machine, while your server is listening only on the loopback address . So, no connection can be established. The solution to this problem is that connect to the same end point your server is listening on.

Reply

Use magic Report

1

Threads

49

Posts

150

Credits

Registered member

Rank: 2

Credits
150
Post time 2020-7-23 16:07:09 | Show all posts
1594793091 replied at 2020-7-15 02:06 PM
This exception message says you're trying to connect to the same host ( 127.0.0.1 ), while you're st ...

Run server.py manually to see the error.
Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-5 16:06:36 | Show all posts
Please refer to the latest materials and manuals: https://www.adeept.com/learn/detail-34.html If your problem has not been resolved, please provide us with a detailed report (including product model, error report, pictures, etc.): support@adeept.com
Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-5 16:07:06 | Show all posts
1578509182 replied at 2020-1-10 03:33 AM
I get the same error cannot connect when using rasptank.py but if I run rasptankTest.py I get connec ...

Please refer to the latest materials and manuals: https://www.adeept.com/learn/detail-34.html
If your problem has not been resolved, please provide us with a detailed report (including product model, error report, pictures, etc.): support@adeept.com

Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules