Skip to content

tatanka: add UPnP port mapping and public IP configuration#17

Merged
martonp merged 1 commit intobisoncraft:masterfrom
martonp:portMapping
Mar 12, 2026
Merged

tatanka: add UPnP port mapping and public IP configuration#17
martonp merged 1 commit intobisoncraft:masterfrom
martonp:portMapping

Conversation

@martonp
Copy link
Copy Markdown
Contributor

@martonp martonp commented Mar 1, 2026

Add UPnP IGD port mapping that requests external port equal to the internal listen port for a stable public address across restarts. The mapping is renewed at 50% of its lifetime per RFC 6886.

Two mutually exclusive options configure the node's public address:

--natmapping Automatically discover the public IP and map the listen port via UPnP.
--publicip Manually specify the public IP to advertise. For manual port forwarding.

If neither is set, the node runs in local dev mode on 127.0.0.1. The listen interface is derived automatically (0.0.0.0 when publicly reachable, 127.0.0.1 otherwise).

Add UPnP IGD port mapping that requests external port equal to the
internal listen port for a stable public address across restarts. The
mapping is renewed at 50% of its lifetime per RFC 6886.

Two mutually exclusive options configure the node's public address:

  --natmapping  Automatically discover the public IP and map the listen
                port via UPnP. For nodes behind a consumer router.
  --publicip    Manually specify the public IP to advertise. For
                manual port forwarding.

If neither is set, the node runs in local dev mode on 127.0.0.1. The
listen interface is derived automatically (0.0.0.0 when publicly
reachable, 127.0.0.1 otherwise).
@martonp martonp merged commit 07af211 into bisoncraft:master Mar 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants