warp icon indicating copy to clipboard operation
warp copied to clipboard

Network Connectivity Issue

Open hmwelsch opened this issue 1 year ago • 10 comments

Pre-submit Checks

Describe the bug

Warp Bug Report: Network Connectivity Issue

Summary

When using Warp terminal, all network connection attempts (using curl, wget, nc) to local network devices fail with "No route to host" errors, while identical commands in regular zsh work perfectly. The issue appears to be isolated to Warp's handling of network connections.

Environment Details

  • OS: MacOS
  • Shell: zsh 5.9
  • Warp Version: v0.2025.04.09.08.11.stable_02
  • Network Interface: en7
  • Date/Time: April 15, 2025

Steps to Reproduce

  1. Open Warp terminal

  2. Run any of these commands to a local IP address:

    curl -v http://192.168.xxx.xxx
    wget -v http://192.168.xxx.xxx
    nc -zv 192.168.xxx.xxx 80
    
  3. Observe "No route to host" errors

Actual Behavior

All network connection attempts fail with errors like:

*   Trying 192.168.54.231:80...
* Immediate connect fail for 192.168.54.231: No route to host
* Failed to connect to 192.168.54.231 port 80 after 1 ms: Couldn't connect to server
* Closing connection
curl: (7) Failed to connect to 192.168.54.231 port 80 after 1 ms: Couldn't connect to server

Expected Behavior

Commands should successfully connect to the local IP address, as they do in regular zsh terminal.

Verification

I have confirmed that:

  • The device is reachable via web browser at the same URL
  • The same commands work perfectly in regular zsh terminal
  • ARP tables show the device is present on the network: arp -n 192.168.xxx.xxx returns ? (192.168.xxx.xxx) at eb:aa:bc:c3:c3:57 on en7 ifscope [ethernet]
  • Routing tables show correct entries
  • No interfering proxy settings (verified with scutil --proxy)

Additional Debugging Information

  • The issue occurs for both HTTP and HTTPS connections
  • All attempted tools (curl, wget, nc, nmap) show the same behavior
  • Adding different headers, timeouts, or connection parameters does not help
  • The issue happens consistently with different local IP addresses

Impact

Unable to use network tools from within Warp terminal for local network connections, requiring switching to regular terminal for these operations.

To reproduce

Just call any curl, etc.

Expected behavior

No response

Screenshots, videos, and logs

No response

Operating system (OS)

macOS

Operating system and version

15.4 (24E248)

Shell Version

zsh 5.9 (x86_64-apple-darwin24.0)

Current Warp version

v0.2025.04.09.08.11.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

hmwelsch avatar Apr 15 '25 10:04 hmwelsch

I can identify what's likely causing your network connectivity issues with Warp on macOS.

MacOS 15 Local Network Permission Issue

Your issue appears to be related to a new security feature in macOS 15 that requires explicit permission for applications to access the local network. This is mentioned in several GitHub issues:

"This issue makes Wrap useless" ... "This is actually due to the new local network policy MacOS 15 adds. You now need to add this policy to apps in order for them to be able to access the local network. You can find it under Settings -> Privacy & Security -> Local Network" SSH, ping etc.: No route to host

Another user confirmed this solution worked for them:

"In macOS 15, Warp has to be added Settings, Privacy & Security, Local Network.. And now SSH works..." seems like ssh connection on macOS 15.2 RC is broken

How to Fix

To resolve this issue:

  1. Open System Settings on your Mac
  2. Navigate to Privacy & Security
  3. Find and select "Local Network" in the list
  4. Make sure Warp is enabled/allowed in this list

This permission is specifically required in macOS 15 and later versions for applications that need to access devices on your local network.

Alternative Workaround

If the above solution doesn't work, you can try disabling the Warp SSH wrapper:

  1. Go to Settings > Features > Session
  2. Disable "Warp SSH Wrapper"

As noted by a Warp team member:

"You can also try disabling the SSH Wrapper by navigating to Settings > Features. Blocks will stop working but with it disabling, SSH should work as normal." Cannot work with warpgate

Let me know if these solutions resolve your network connectivity issues with Warp!

dannyneira avatar Apr 17 '25 23:04 dannyneira

Thanks for your suggestions. Fix 1 did not work. Fix 2 worked initially. However, I found it not under Features > Session, but under Warpify > "Warp SSH Wrapper". I disabled Warpify and it worked after restarting the session. However, today I tried again - no changes in the meantime! - and it no longer works. Same error message: curl -X GET 'http://192.168.xxx.xxx' curl: (7) Failed to connect to 192.168.xxx.xxx port yy after 1 ms: Couldn't connect to server Real IP and port were verified to be correct and working under zsh!

hmwelsch avatar Apr 27 '25 16:04 hmwelsch

Image

heproj avatar Aug 19 '25 10:08 heproj

This setting was already enabled! I still get

curl http://192.168.xxx.xxx
curl: (7) Failed to connect to 192.168.xxx.xxx port 80 after 1 ms: Couldn't connect to server

for a local web site, I can connect to without problems from another terminal

curl http://192.168.xxx.xxx
<!DOCTYPE html><html><head><meta charset=UTF-8><link rel=icon href=data:></head><body><esp-app></esp-app><script src="https://oi.esphome.io/v2/www.js"></script></body></html>% 

BTW: Warpify SSH is OFF.

hmwelsch avatar Aug 19 '25 11:08 hmwelsch

I am sorry, but ‚local network' was already enabled for Warp, as described in my comment. Yes, it is zsh and yes, ping works.

Am 19.08.2025 um 13:39 schrieb hexrs @.***>:

hexrs left a comment (warpdotdev/Warp#6320) https://github.com/warpdotdev/Warp/issues/6320#issuecomment-3200394291 Both terminals are using zsh, right? Warp might start bash. You can try ping your router. if it works, I think you should check your local web server. I ran into this issue today as well, and fortunately, giving Warp the necessary permissions solved it.

— Reply to this email directly, view it on GitHub https://github.com/warpdotdev/Warp/issues/6320#issuecomment-3200394291, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4CNFNHBZW6FDFLBEG2BFT3OMEFXAVCNFSM6AAAAAB3FHB4B6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMBQGM4TIMRZGE. You are receiving this because you authored the thread.

hmwelsch avatar Aug 20 '25 07:08 hmwelsch

Same issue here. Too bad this is not receiving the attention it should...

alefarendsen avatar Feb 04 '26 19:02 alefarendsen

Same issue here.

SSH, ping, and nc to a local network host (192.168.88.62) fail with "No route to host" from within Warp. The same commands work perfectly from Terminal.app on the same Mac, same user, same network interface. Environment: • mac OS Tahoe 26.3.1 (25D2128), Warp v0.2026.03.04.08.20.stable_02. , zsh 5.9 • Interface: en7 (Ethernet), Attempted fixes (no effect): • Added Warp to macOS Firewall allow list • Fully quit and restarted Warp

averriK avatar Mar 08 '26 12:03 averriK

Same here. A workaround is to use sudo command before. E.g sudo ping 192.168.0.10

But I would very much like a fix to this. Also, it would be VERY useful to get a warning or some kind of information about this. I spent 2 days trying to debug and fix my mac's network settings. Not until day 2, after asking 4 different LLM's about idea's I got the suggestion to check permissions. Ping works from the default terminal app, but not from warp.

I tried all the suggested fixes in this thread, and nothing's working. Resarting the app or mac doens't make a difference. The only thing that works is to add "sudo" before the command.

MrFiskarBengt avatar Mar 11 '26 18:03 MrFiskarBengt

Same issue. Sadly will cancel my subscription, because the app is not usable now

gle6as avatar Mar 27 '26 12:03 gle6as

Thank you for bringing this to our attention. This issue is tracked under #5550   Please comment, 👍 upvote and subscribe there for updates. Closing as a duplicate.

leesa-ui-w avatar Mar 27 '26 19:03 leesa-ui-w