TypeError while using socket.bind() #12569
-
Hello, I'm trying to code a webserver using usocket lib but got the following issue. My environment:micropython -v This happens as well on my esp32 device, which i believe running micropython 1.20 My code:
Traceback:
Edit:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Please try:
|
Beta Was this translation helpful? Give feedback.
-
Now bind gives: When i add: I get: |
Beta Was this translation helpful? Give feedback.
-
On Linux, ports below 1000 are reserved for the system and can only be accessed by root. Please try port 8080. |
Beta Was this translation helpful? Give feedback.
-
This worked. Looks like there is something is wrong with my infrastructure as now i got the following, when trying to use micropyserver: But this is off-topic so I'll close this thread and try to figure out what's going on. |
Beta Was this translation helpful? Give feedback.
Please try: