socks5-server
socks5-server copied to clipboard
connect: cannot assign requested address
Hi, thanks for the great software!
When I use proxy on the same machine where the Docker container is running, everything works perfectly. But when I try to connect from the remove machine, I get the following:
Attaching to socks5-docker_go-socks5-proxy_1
go-socks5-proxy_1 | 2022/07/31 14:01:10 Start listening proxy service on port 1080
go-socks5-proxy_1 | 2022/07/31 14:01:26 [ERR] socks: Failed to handle request: Connect to 2606:4700:3033::ac43:9890:80 failed: dial tcp [2606:4700:3033::ac43:9890]:80: connect: cannot assign requested address
Could it be related to the mixing of ipv4 and ipv6? I've tried many things, ports are definitely up, and no firewall is involved. It seems that the proxy is just trying to use the IP of the sender, which would obviously fail, if the sender is not local.
Hi!
Can't say exactly where problems is, never catch this exception. Provided logs is definitely telling us that problem near ipv4/6 but I need more info.
How can I reproduce your problem?
I had the same issue and it seems to be related to ubuntu's curl (maybe the firewall?). When I try with dockered curl (same version) it works fine.