Hi pythonanywhere-Team, I have seen a few related posts but they didn't help me: Link1 Link2 Link3 Is it possible to start a TCP socket on pythoanywhere, what minimum code example do you recommend? Can I take this one and adapt it:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
It shall receive data and echo it back.
When trying to execute this code example, I receive the following error:
Traceback (most recent call last): File "/home/mydir/API/tcp_server_test.py", line 9, in <module> s.bind((HOST, PORT)) PermissionError: [Errno 13] Permission denied
How can I fix this and how can I properly configure the TCP connection under Web?