Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect: cannot assign requested address #31

Open
dmikushin opened this issue Jul 31, 2022 · 2 comments
Open

connect: cannot assign requested address #31

dmikushin opened this issue Jul 31, 2022 · 2 comments

Comments

@dmikushin
Copy link

dmikushin commented Jul 31, 2022

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.

@serjs
Copy link
Owner

serjs commented Nov 8, 2022

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?

@nova77
Copy link

nova77 commented Sep 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants