Connect to local IP address on sta interface does not work #17165
Unanswered
Alex252562
asked this question in
ESP8266
Replies: 2 comments 3 replies
-
How did you configure the ESP8266? IP-address, Station mode or AP mode? |
Beta Was this translation helpful? Give feedback.
3 replies
-
To everyone who, like me, likes to do some things quicklyimport socket This simple code will not work on a local network unless you uncomment the line belowtime.sleep(3)sock = socket.socket() sock.connect(addr) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
SImple code
sock = usocket.socket()
addr = ("192.168.1.1", 80)
sock.connect(addr)
does not work.
Error is OSError: [Errno 103] ECONNABORTED if ap is active
or
OSError: [Errno 113] EHOSTUNREACH if ap is not active.
Of course no address conflicts.
Is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions