-
Notifications
You must be signed in to change notification settings - Fork 9
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
Cannot connect to tunneled proxy: Cannot connect to server #14
Comments
Not sure what the problem could be, but you could try these checks to start:
Some additional checks:
|
i had the same problem! when im not using my VPN. when I turn on VPN this problem no longer problem and I can join to the server. |
Little side note, |
Thanks for pointing out the missing I totally forgot, that damned In summary:
Are you able to connect to the proxy normally (through localhost or ip) with Ngrok disabled in your config.json? (Ngrok must be disabled, or the port won't be accessible) These networking problems are very hard for me to replicate, so any information about the environment you're running the proxy on could be helpful (e.g. distro, firewall daemon, docker/virtualbox, etc.) |
Looking at issue #1 it seems like my environment is pretty similar. The proxy is being hosted in my Raspberry Pi 4 with Debian/Raspi OS, and I'm connecting to the proxy from an Arch Linux machine. The issue persists, even after disabling ngrok and trying to access my proxy locally from
The former seems to be the connection to 2b2t and the latter to connect to the proxy, so it doesn't seem to be a firewall issue (if it was, I'd probably not even be able to connect via ssh in the first place lmao) |
Hey, any updates on this? |
Hey, I'm very grateful for your detailed bug report and sorry I haven't had time to work on this even though I really want to. Here's all the information I have so far in the meantime:
|
The issue doesn't seem to be about ngrok, since I can't connect to the server with ngrok disabled either |
Hmm, based on what Offset said about a VPN, this may be caused by differences in Ipv4 and Ipv6 loopback addresses. We previously came across and attempted to address the problem with #11, but I've added a new config option to set the loopback address yourself with proxy.loopbackAddress in the latest commit. You can clone the main branch again and try the different loopback addresses to see if any of them work ( |
I'm glad to say that setting the loopback address to 0.0.0.0 fixes the issue, and that now I can successfully connect to the proxy server without any issues. Nice :) |
Hold on, I just realized I was testing this without ngrok enabled. Enabling ngrok again still returns a "Can't connect to server" error. Whoops |
After several attempts with Encho in Discord DMs trying to figure this out (for the sake of not filling this issue with unnecessary info), we found out that loopback addresses are hell. Sometimes they work, sometimes they don't. In my case, |
Hey, I'm trying to run 2b2w with my free ngrok.io token, and I can see an URL being displayed in the console output and Discord spam webhook, but when I try to connect to it, it just doesn't look as if a server actually existed, giving the error "Cannot connect to server". Judging by the output, there are no visible errors, and the proxy is connected to 2b2t, so that's odd.
On a side note, would it be possible to create a Discord or Matrix or anything server for easier and faster troubleshooting and discussion? Thanks :)
The text was updated successfully, but these errors were encountered: