Cursor not able to access local network

If I run an iOS app on a device, the IDE needs access to the local network because of an update in the latest MacOS version (Sequoia). If I run flutter run in VS Code, it asks for permission. However, either Cursor didn’t ask for it or I accidentally denied it long ago. I’m not able to see Cursor requesting this permission in the local network settings. What can I do so that Cursor has to ask if it can access the local network? This is the only way to solve a bug affecting Flutter and the latest MacOS version

Hi @chiragbhansali,

Could the recommendations in Mac Sequoia: broken local network access · Issue #228862 · microsoft/vscode · GitHub help? I know that’s for VSCode, but I wonder if there’s a way to add Cursor via the settings.

I haven’t installed the latest macOS version, maybe it’s time to do so.

1 Like

I did see that. The difference is that VS Code prompts me so I can give access either there or in settings. Cursor never asks so I can’t give it access manually. Would appreciate if this can fixed

I have looked around a bit, and that prompt is controlled by macOS. It intercepts attempts to use the local network, and adds the app to that list in Privacy Settings. Having said that, I am not sure why Cursor is not triggering that prompt.

Are you doing flutter run from within a Cursor terminal? What happens?

Could you try hitting the local network from within Cursor using something unrelated to flutter? Maybe something like:

curl http://192.168.1.1

You may have to replace the IP address with the one your router is at.

I guess long shot, but you never know.

When I run flutter run, it says the socket connection couldn’t be established. Even if I run the curl command, it works in the normal terminal but not in the Cursor terminal. Here’s the error:

curl: (7) Failed to connect to 10.0.0.1 port 80 after 1 ms: Couldn't connect to server

Here are some more details about the problem: macos - How can I manually allow Local Network access for an app? - Ask Different (another app, same problem).

Cursor team, please fix this, I want to use you for Raspberry Pi development as well, but for this I need remote development feature that requires local network access.