Error running "forge tunnel" from Ubuntu WSL2 on Windows

Hi,

I’m developing a Forge app in my Ubuntu WSL2 Environment.
But when I run forge tunnel, I got this error:

Could you please give me some suggestions?

Hi @nhac.tat.nguyen,
Thank you for reaching out. It seems like a failure with the local port it is trying to connect. Could you please re-try with forge tunnel --verbose which will give more details ? Re-try will pick a different port and may resolve the issue as well. If not could you please provide the forge cli version, docker version and also node version in your setup.

Hi @LashaniPerera, thanks for answering.

The screenshot in my post is the content from forge tunnel --verbose.

The versions I’m using:

  • Forge CLI: 2.0.6
  • Docker: 20.10.12, build e91ed57
  • Node: 16.13.1
  • Ubuntu: 20.04 LTS running in WSL2

Thanks

Hi @nhac.tat.nguyen,

Is ngrok currently whitelisted in your environment? It requires the connection to be established and kept alive for tunnel to work.

Cheers

1 Like

Hi @heinzen, I tested by running ngrok http 8080 from my shell and it doesn’t work. So it looks like the problem is with ngrok and our network.

I will investigate more on this.
Thank you for your help.

1 Like