Trunk will listen to host names according to addresses. Such as localhost to 127.0.0.1.
I am encountering in the problem, in which trunk add a period mark after the hostname. This period makes onward listen process fails.
I am using tauri + yew with trunk v0.21.14, some logs are as following:
2026-01-11T13:15:49.665662Z INFO applying new distribution
2026-01-11T13:15:49.891756Z INFO success
2026-01-11T13:15:49.892033Z INFO serving static assets at -> /
2026-01-11T13:15:49.921377Z INFO server listening at:
2026-01-11T13:15:49.921643Z INFO http://127.0.0.1:31420/
2026-01-11T13:15:49.951606Z INFO http://kubernetes.docker.internal.:31420/
Warn Waiting for your frontend dev server to start on http://127.0.0.1:31420/...
2026-01-11T13:15:50.403365Z ERROR error from server task error=以一种访问权限不允许的方式做了一个访问套接字的尝试。 (os error 10013)
2026-01-11T13:15:50.404778Z ERROR 以一种访问权限不允许的方式做了一个访问套接字的尝试。 (os error 10013)
Error The "beforeDevCommand" terminated with a non-zero status code.
The config (Trunk.toml) is:
[build]
target = "./index.html"
[watch]
ignore = ["./src-tauri"]
[serve]
addresses = [
"127.0.0.1"
]
port = 31420
open = false
As shown in log, there is a period after http://kubernetes.docker.internal, and I think that's the cause of os error 10013.
Trunk will listen to host names according to
addresses. Such aslocalhostto127.0.0.1.I am encountering in the problem, in which
trunkadd a period mark after the hostname. This period makes onward listen process fails.I am using tauri + yew with trunk v0.21.14, some logs are as following:
The config (
Trunk.toml) is:As shown in log, there is a period after
http://kubernetes.docker.internal, and I think that's the cause ofos error 10013.