Skip to content

docs(network): broken anchors on the server API page, and TCP and UDP ports swapped against nf new #527

Closed

Description

@Exeloo

What is the type of issue?

Documentation is incorrect

What is the issue?

Two problems in the network docs:

  1. Broken in-page anchors on the server API page. Three links point at #networkpayload and #networkdata, but the section is titled "NetworkPayload and NetworkData", so its anchor is #networkpayload-and-networkdata. The links do nothing.
  2. TCP and UDP ports differ from the project that nf new generates. The docs .env examples use TCP 4445 and UDP 4444; the .env of a workspace made by nf new --server uses TCP 4444 and UDP 4445. Any free ports work, but the two sources contradict each other, and copying only the client or only the server lines from the docs into a generated project breaks the connection. (The engine's own e2e/game uses the docs' values.)

Suggested fix: link to #networkpayload-and-networkdata (or give each type its own heading), and use the nf new ports (TCP 4444, UDP 4445) in the docs examples.

Found during the pre-testing-phase audit (2026-11-22).

Where did you find it?

Activity

  1. added
    documentation
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions