jacobschaer / python-doipclient

Pure Python ISO 13400 Client
MIT License
151 stars 50 forks source link

[WinError 10061] when creating a DoipClient with client_ip_address != None #40

Open yosraboussaid opened 10 months ago

yosraboussaid commented 10 months ago

I was trying to create a DoipClient using a client_ip_address != None, trying to bind the client's IP in the network. The only response was ConnectionRefusedError, using a configured ethernet loop or a hardware server.

server = DoIPClient('192.48.48.58', 0xD, udp_port=13400, client_ip_address='192.48.48.13')

I have also tried using the same IP address for the ecu_ip and the client_ip. The same behavior was triggered.

image

Note: I'm using doipclient 1.0.6 and the firewall is deactivated.

jacobschaer commented 10 months ago

ConnectionRefused generally means you got a RST from your ECU - there's nothing wrong with the client. Presumably, your configuration is wrong or your ECU requires additional preconditions.