# Port forwarding not working (site can't be reached)

**URL:** <https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324>\
**Category:** Bug Reports\
**Tags:** ssh\
**Created:** [June 15, 2026, 11:56am UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324 "2026-06-15T11:56:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maximilian\_Mordig](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Maximilian\_Mordig](https://forum.cursor.com/u/Maximilian_Mordig)\
**Post date:** [June 15, 2026, 11:56am UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/1 "2026-06-15T11:56:40Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Port forwarding does not work.

### Steps to Reproduce

Starting this in the terminal in Cursor:

```auto
python -m http.server -d . 8100

```

The port is shown as forwarded in the ports tab, yet localhost:8100 cannot be reached (running in a workspace reached via ssh anysphere plugin, remote: linux, local: MacOS X).

On the other hand, it works in VS Code.

### Expected Behavior

Port should be forwarded.

### Operating System

MacOS

### Version Information

Version: 3.7.36  
Commit: 776d1f9d76df50a4e0aeca61819a88e7c1b861e0  
Date: 2026-06-13T00:31:56.287Z  
Layout: editor  
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_15\_7) AppleWebKit/537.36 (KHTML, like Gecko) Cursor/3.7.36 Chrome/142.0.7444.265 Electron/39.8.1 Safari/537.36

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [June 15, 2026, 12:31pm UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/5 "2026-06-15T12:31:12Z")

</div>

Hey, thanks for the report. This looks like an IPv4 vs IPv6 mismatch when resolving `localhost` on macOS. In that case, the port can show as forwarded, but the local listener is actually bound to a different address.

Can you try these instead of `localhost:8100`:

- `http://127.0.0.1:8100`
- `http://[::1]:8100`

If one of them works but `localhost:8100` doesn’t, that confirms it’s an IPv4 vs IPv6 bind issue. Let me know what you get and we can file an issue with the details.

---

<div class="post-metadata">

**Author:** ![Maximilian\_Mordig](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Maximilian\_Mordig](https://forum.cursor.com/u/Maximilian_Mordig)\
**Post date:** [June 16, 2026, 7:50am UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/6 "2026-06-16T07:50:58Z")

</div>

> [@deanrie](#):
>
> - `http://[::1]:8100`

Hi Dean

Both of these also don’t work.

My current workaround is to have vscode open and open the ports there (or use ssh directly).

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [June 16, 2026, 8:49am UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/7 "2026-06-16T08:49:46Z")

</div>

Thanks, that’s an important detail, so it’s not an IPv4 vs IPv6 mismatch. The listener just isn’t coming up the way it should. The workaround via VS Code or direct SSH makes sense, but let’s collect a couple of things to debug it:

1. On your local Mac, while the port shows as forwarded in Cursor, run this in Terminal:

2. How many Cursor windows are open when the issue happens? If it’s multiple, especially multiple remote windows, check if the port still forwards when the correct window is active and focused.

3. Remote SSH logs: open View \> Output, then in the dropdown at the top right select the Remote - SSH channel or Anysphere Remote, and share whether there are any tunnel or forward errors around the time you start the server.

With that info, I can report an issue with solid details. Let me know what you find.

---

<div class="post-metadata">

**Author:** ![SmartManoj](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/smartmanoj/32/113510_2.png) [@SmartManoj](https://forum.cursor.com/u/SmartManoj)\
**Post date:** [July 5, 2026, 6:17am UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/8 "2026-07-05T06:17:08Z")

</div>

Same bug on **Windows 11 → Linux (Amazon Linux 2023)**, so not macOS-specific.

**1)** Local listener is up on both loopbacks, and each connect gets an instant RST:

```auto
::1 8100 Cursor.exe
127.0.0.1 8100 Cursor.exe
$ curl http://127.0.0.1:8100/ → Recv failure: Connection was reset (~2 ms)

```

Same for `[::1]:8100`. Not an IPv4/IPv6 bind issue.

**2)** 1 Cursor window (the arc workspace). Reproduces alone and focused.

**3)** Real cause is in the `tunnel-forwarding` log — fires on every attempt:

```auto
[info] [tunnel-forwarding][localhost:8100 -> 0.0.0.0:8100] server listening
[info] Cross binding to [::1]:8100. Originally bound to 127.0.0.1:8100
[error] [tunnel-forwarding] no remote dialer available; arbitrary TCP forwarding is unavailable in socket mode

```

**Doesn’t fix it:** `AllowTcpForwarding yes` in sshd\_config (already effective), `rm -rf ~/.cursor-server` + reconnect, binding the app to `::` / `0.0.0.0` / `127.0.0.1`, restarting Cursor.

**Does work at the same moment on the same target:** `ssh -N -L 8100:localhost:8100 <host>`, and VS Code Insiders’ Remote-SSH forward.

That error string — `arbitrary TCP forwarding is unavailable in socket mode` — should be a straight grep in the extension: looks like the socket-mode transport branch is missing the dialer that the WebSocket-mode branch has.

Versions: Cursor `v3.10.11`, Anysphere Remote-SSH `v1.1.6`.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 5, 2026, 2:52pm UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/9 "2026-07-05T14:52:43Z")

</div>

Hey, thanks for such a detailed diagnosis, that’s exactly what we needed.

Your log makes it clear this isn’t an IPv4/IPv6 mismatch, it’s exactly what `tunnel-forwarding` shows:

```auto
no remote dialer available; arbitrary TCP forwarding is unavailable in socket mode

```

So when the connection goes through socket mode, arbitrary TCP port forwarding doesn’t work the same way as in VS Code, which is why you get an instant RST even though the port shows as forwarded. This matches the original report on macOS too, so it’s not platform-specific.

Working workaround (you already found it, reposting for anyone who finds this thread):

- Manual tunnel: `ssh -N -L 8100:localhost:8100 <host>`
- Or forward the port via VS Code Remote-SSH

I’ve reported it internally with your logs and versions. I can’t share an ETA for a fix yet, but I’ll post an update in the thread when I have one.

---

<div class="post-metadata">

**Author:** ![tarun](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tarun/32/93371_2.png) [@tarun](https://forum.cursor.com/u/tarun)\
**Post date:** [July 6, 2026, 5:12am UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/12 "2026-07-06T05:12:52Z")

</div>

@Maximilian_Mordig @SmartManoj Hi!  
I am Tarun from the team!

Can you confirm if you have `remote.SSH.remoteServerListenOnSocket` set to `true` by any chance ??  
if so, try setting it to false and try again.

---

<div class="post-metadata">

**Author:** ![SmartManoj](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/smartmanoj/32/113510_2.png) [@SmartManoj](https://forum.cursor.com/u/SmartManoj)\
**Post date:** [July 6, 2026, 5:32am UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/14 "2026-07-06T05:32:53Z")

</div>

@tarun Set to false + reload window — fixed. Thanks for the fast diagnosis!

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 20, 2026, 8:24am UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/16 "2026-07-20T08:24:12Z")

</div>

Hey @Maximilian_Mordig. Looks like we found the cause. The log symptom matches `no remote dialer available; arbitrary TCP forwarding is unavailable in socket mode`. In socket mode, arbitrary TCP forwarding doesn’t work the same way as in VS Code, so you get an RST even though the forward looks alive.

Try this workaround: set `remote.SSH.remoteServerListenOnSocket` to `false` in settings, then reload the window and reconnect. Another user with the exact same symptom confirmed this fixes it.

Let me know if forwarding works after that, or if it’s still blocked.

---

<div class="post-metadata">

**Author:** ![Maximilian\_Mordig](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Maximilian\_Mordig](https://forum.cursor.com/u/Maximilian_Mordig)\
**Post date:** [October 20, 2026, 8:27am UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/17 "2026-10-20T08:27:29Z")

</div>

Confirming it works now with this option changed. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [October 22, 2026, 8:27am UTC](https://forum.cursor.com/t/port-forwarding-not-working-site-cant-be-reached/163324/18 "2026-10-22T08:27:34Z")

</div>

Closed on October 22, 2026, 8:27am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
