You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import socket
import socks
import random
data = random._urandom(1024)
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "IP_OF_SOCK5", PORT_OF_SOCK5, True)
s = socks.socksocket(socket.AF_INET, socket.SOCK_DGRAM)
s.sendto(data, ('IP_DST',PORT_DST))
But I receive these errors:
socks.GeneralProxyError: Connection closed unexpectedly
or ConnectionResetError: [Errno 54] Connection reset by peer
or TimeoutError: [Errno 60] Operation timed out
In theory, SOCKS5 supports UDP forwarding, my problem is: how can I implement it in Python? What am I doing wrong?
And no, I'm not using TOR, I know in fact that TOR doesn't support UDP.
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I have this code:
But I receive these errors:
socks.GeneralProxyError: Connection closed unexpectedly
or
ConnectionResetError: [Errno 54] Connection reset by peer
or
TimeoutError: [Errno 60] Operation timed out
In theory, SOCKS5 supports UDP forwarding, my problem is: how can I implement it in Python? What am I doing wrong?
And no, I'm not using TOR, I know in fact that TOR doesn't support UDP.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: