mirror of
https://github.com/fosrl/newt.git
synced 2026-05-05 23:50:10 -05:00
[GH-ISSUE #243] Newt binaries don't respect --port flag #256
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @serguma88 on GitHub (Feb 24, 2026).
Original GitHub issue: https://github.com/fosrl/newt/issues/243
Describe the Bug
I am using newt binaries installed with
curl -fsSL https://static.pangolin.net/get-newt.sh | bashWhenever I run newt on the CLI with the
--portflag it does not seem to be taken into account, but still selects one port at random.This prevents me from forwarding the port to avoid relay connections (as any restart of newt would result in a new port being selected).
Environment
To Reproduce
Run
newt --port 55500 --id ID --secret SECRET --endpoint https://pangolin.my.domain, connect to the client via Pangolin ios app. Random port is selected (visible in the Status --> Sites tab)Expected Behavior
Clients connect on port 55000
@AntonVonDelta commented on GitHub (Feb 25, 2026):
This bug also affects me. It looks like it uses the port for some traffic at container start and some nat hole punching it seems but then it stops using it. I managed to fix nat hole punching by enabling static port in opensense for outbound traffic but exposing this port together with using --port did not work at all
@serguma88 commented on GitHub (Feb 28, 2026):
Issue still seems to be there in 1.10.1, flag gets completely ignored, debug logs don't even show any kind of error:
@oschwartz10612 commented on GitHub (Mar 4, 2026):
I fixed this in
7920295b8cdoing a release shortly