Forward localhost:3000 with spawn - Windows

Im encountering an issue while trying to forward localhost:3000, but keep getting the error ‘spawn c:\Users\lenovo\AppData\Local\Programs\cursor\bin\code-tunnel.exe ENOENT’. Has anyone else faced a similar problem? How can I resolve it?

5 Likes

Still looking for a solution to this issue

1 Like

The problem remains in the latest build

Here’s a workaround I’ve found:

  • install vscode
  • go to vscode’s folder (on OSX it’s /Applications/Visual Studio Code.app/Contents/Resources/app/bin)
  • copy code-tunnel binary to cursor’s folder (/Applications/Cursor.app/Contents/Resources/app/bin)
10 Likes

thanks! worked great

1 Like

Is there a solution to this problem on Ubuntu?

2 Likes

does this allow us to use local models within cursor?

so far only some somehow shady projects like Gaia Net and Ngrok work with a url which is exposed to the web

maybe Cloudflare could also work hmm

Very good! Saved my day at work! :kissing_heart:

1 Like

The solution that worked for @topcat on OSX doesn’t work on Ubuntu.

Please be aware of the caveat of the current workaround: I'm unable to forward a port - #6 by Corey3D

Be aware tho’, closing the port from Cursor does not stop the process and the forwarding stays active, you have to manually stop code-tunnel.exe eg. from task manager.

Great solution
cd “/Applications/Visual Studio Code.app/Contents/Resources/app/bin” & cp code-tunnel /Applications/Cursor.app/Contents/Resources/app/bin/

There is a file in /Applications/Cursor.app/Contents/Resources/app/bin called cursor_tunnel but it seems to be looking for code_tunnel.

Renaming cursor_tunnel to code_tunnel worked for me

1 Like

this worked for me on MacOSx. it was called cursor-tunnel, renamed code-tunnel.
Worked.

1 Like

Please fix this, Cursor team! It can be as easy as renaming cursor-tunnel to code-tunnel or the other way around.

For Windows:::
Copy all the content from C:\Users\{"your name"}\AppData\Local\Programs\cursor\resources\app\bin

Paste to C:\Users\{"you_name"}\AppData\Local\Programs\cursor\bin..

P.S: You need to make a “bin” New folder in the cursor folder and also change the name from cursor-tunnel to code-tunnel

1 Like

awesome this worked for me

1 Like