OK, to my last email for a while on the subject.
On any Sequoia, running a binary from the Terminal.app grants it access to the local network. With no other action running it from 9term doesn't allow access to any local network IP (except the gateway).
on Sequoia 15.0.1 on M3
- if I run my code as a launch daemon AND built with -ldflags="-linkmode=external" then when the system starts (or I launchctl load it) a window pops up asking me if I want to allow local network access. Answering yes doesn't necessarily allow it but does put any entry in 'system settings->Privacy & Security->Local Network' that I can check to turn on local network access for my program. This is sticky so I can run it from a 9term shell prompt, or fork/execed from anything, and it still can access. Looks like a permanent omnipresent blessing.
on Sequoia 15.0.1 on x86
- the above ldflags raises a warning but does indeed set the uuid. However, it seems to have no effect, i.e. I never get a window to pop up asking if I want permission not do I end up getting an entry in 'system settings->Privacy & Security->Local Network'. However, if I make it a LaunchDaemon that runs as root, it can indeed access the local network, no questions asked.
I don't really know if running as root on the M3 would also work minus the blessing but I'm not tired of this game.
Why this discrepancy I can't answer. Most likely the implementation is a royal hack job in the networks interface and done differently for the different architectures.