urequest ECONNABORTED

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
iTommix
Posts: 1
Joined: Fri Jun 25, 2021 9:53 am

urequest ECONNABORTED

Post by iTommix » Fri Jun 25, 2021 10:05 am

Hello,

i'm new to this forum and programming uPython on ESP8266.

I have this problem:

My Board is connected to a wifi with this config

Code: Select all

('10.0.2.88', '255.255.252.0', '10.0.0.1', '192.168.4.1')
The Router is an openWRT-System. As you can see, the gateway is the router (openWRT) and the DNS is our Firewall.

With the ESP i am not able to access the IP 192.168.4.x (also not the DNS), but 192.168.5.x or 10.0.x.x. If i try to access 192.168.4.171 (it's an Ubuntu Server), i'll get

Code: Select all

>>> urequests.request("get", "http://192.168.4.171", data=None, json=None, headers={})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "urequests.py", line 60, in request
OSError: [Errno 103] ECONNABORTED
My iPhone is connected to the same wifi, and with it i can access all these addresses, even http://192.168.4.171.

What could be the problem?

Regards,
Thomas

Post Reply