-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection to a AC2729/10 failes with urlopen error [Errno 111] Connection refused> #89
Comments
You can try switching the protocol with either:
or
|
I tried booth: [email protected]:~$ airctrl --ipaddr 192.168.178.74 --protocol coap [email protected]:~$ airctrl --ipaddr 192.168.178.74 --protocol plain_coap |
Same here with AC3036/10 and firmware 69.1 During handling of the above exception, another exception occurred: Traceback (most recent call last): pi@raspberrypi:~ $ airctrl --ipaddr 192.168.2.159 --protocol plain_coap |
By me The Same "Connection Refused" |
Hi,
I have new AC2729/10 device ([email protected] Firmware). The android app is able to connect to the device. It has the fix IP 192.168.178.74 (host has the IP 192.168.178.11)
I tried to connect but get an error:
[email protected]:~$ sudo airctrl --ipaddr 192.168.178.74
Exchanging secret key with the device ...
Traceback (most recent call last):
File "/usr/local/lib/python3.8/urllib/request.py", line 1317, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/local/lib/python3.8/http/client.py", line 1230, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1276, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1225, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1004, in _send_output
self.send(msg)
File "/usr/local/lib/python3.8/http/client.py", line 944, in send
self.connect()
File "/usr/local/lib/python3.8/http/client.py", line 915, in connect
self.sock = self._create_connection(
File "/usr/local/lib/python3.8/socket.py", line 807, in create_connection
raise err
File "/usr/local/lib/python3.8/socket.py", line 796, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/airctrl", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/pyairctrl/airctrl.py", line 444, in main
c = HTTPAirCli(device["ip"])
File "/usr/local/lib/python3.8/site-packages/pyairctrl/airctrl.py", line 100, in init
self._client = HTTPAirClient(host, debug)
File "/usr/local/lib/python3.8/site-packages/pyairctrl/http_client.py", line 108, in init
self.load_key()
File "/usr/local/lib/python3.8/site-packages/pyairctrl/http_client.py", line 156, in load_key
self._get_key()
File "/usr/local/lib/python3.8/site-packages/pyairctrl/http_client.py", line 119, in _get_key
with urllib.request.urlopen(req) as response:
File "/usr/local/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/local/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.8/urllib/request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/local/lib/python3.8/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>
I tried it with and without sudo.
Any explanation for this behavior?
The text was updated successfully, but these errors were encountered: