# Port Forward shouldn't always be Random port by default

**URL:** https://forums.k8slens.dev/t/port-forward-shouldnt-always-be-random-port-by-default/5923
**Category:** Feature Requests
**Created:** [April 22, 2025, 6:40am UTC](https://forums.k8slens.dev/t/port-forward-shouldnt-always-be-random-port-by-default/5923 "2025-04-22T06:40:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lkjcdjklvcxkjl](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@lkjcdjklvcxkjl](https://forums.k8slens.dev/u/lkjcdjklvcxkjl)
#### Post date: [April 22, 2025, 6:40am UTC](https://forums.k8slens.dev/t/port-forward-shouldnt-always-be-random-port-by-default/5923/1 "2025-04-22T06:40:34Z")

</div>

Instead it should use the port that you’re trying to forward.

For example, if I forward 5005, it will default to port 5005 in the menu, as long as I don’t currently have the port forwarded in Lens, and it isn’t :80 or another port that can’t be forwarded.

**Additionally** the “Open in Browser” and “https” should remain as they are right now, except:

- if I check “Open in Browser” or “https” for a specific port (e.x. 5005), Lens should keep that memorized for the next time it pops up for that port.

_With these implemented, to me it will be an extreme quality of life improvement for remote debugging._

---

<div class="post-metadata">

### Author: ![crothmann](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/crothmann/32/1544_2.png) [@crothmann](https://forums.k8slens.dev/u/crothmann)
#### Post date: [April 22, 2025, 6:57am UTC](https://forums.k8slens.dev/t/port-forward-shouldnt-always-be-random-port-by-default/5923/2 "2025-04-22T06:57:12Z")

</div>

Hi @lkjcdjklvcxkjl,

Thanks a lot for your feedback — we really appreciate you taking the time to share your thoughts!

I’ve already created an internal ticket for this and we’ll be discussing it with the team. The ideas you outlined would definitely make a big difference, especially for remote debugging workflows.

We’ll keep you posted on any updates. Thanks again!

---

<div class="post-metadata">

### Author: ![lkjcdjklvcxkjl](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@lkjcdjklvcxkjl](https://forums.k8slens.dev/u/lkjcdjklvcxkjl)
#### Post date: [May 5, 2025, 6:56am UTC](https://forums.k8slens.dev/t/port-forward-shouldnt-always-be-random-port-by-default/5923/3 "2025-05-05T06:56:19Z")

</div>

Appreciate it! It would really make remote debugging work like a charm in the future for sure.

I really like how Lens currently makes everything seamless and easy to understand.
