nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Teamspeak 3 Port Stream high packet lose

Open bonderaustria opened this issue 3 weeks ago • 7 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image? yes
  • Are you sure you're not using someone else's docker image? yes Have you searched for similar issues (both open and closed)? yes

Describe the bug Port 9987 is streamed with the proxy and the packet lose is around 80% most of the time...with a direct connection i got 0% lost packages

bonderaustria avatar Nov 29 '25 16:11 bonderaustria

I tested it, and you are right that without reuseport, UDP packets are dropped during streaming. Adding the reuseport option to the listen directive in nginx solves this issue by allowing the kernel to distribute incoming UDP packets evenly across multiple worker processes. This reduces packet loss and improves the stability of the streamreuseport in nginx works by giving each worker its own socket, so packets from the same UDP connection consistently reach the same worker, which is crucial for maintaining session integrity in UDP streaming.​

Solution (fix template): https://gitea.linuxiarz.pl/gru/npm-angie-auto-install/commit/e14355ea339a02a38406327a387f9997583b1ae6

It is available by default in my auto install script.

zdzichu6969 avatar Nov 29 '25 21:11 zdzichu6969

@zdzichu6969 how should i use it in my current installation to fix this issue ? Can you open a pull request ? So its for everybody ? I just can see changes for ipv6, but I have the issue with ipv4.

bonderaustria avatar Nov 30 '25 08:11 bonderaustria

I’m seeing the same issue: running a Factorio server behind Nginx with PortStreaming introduces constant lag and poor upload performance. When I bypass Nginx and forward the port directly, everything runs smoothly. All on IPv4 only

Keugon avatar Nov 30 '25 09:11 Keugon

Can you perhaps make a minimal reproduction of the issue and show how you test for the packet loss?

7heMech avatar Nov 30 '25 18:11 7heMech

This is the setting in the nginx proxy:

Image

In teamspeak i see the packetdrop in the settings. Which detailed infos i can give you ?

bonderaustria avatar Nov 30 '25 18:11 bonderaustria

in my case the prove of the issue is that connection stats in Factorio, what configs from nginx could i possible give you besides the same "Add Stream" picture like "bonderaustria"

Keugon avatar Nov 30 '25 18:11 Keugon

Are there any thing we can provide to help find a solution for this issue?

Keugon avatar Dec 05 '25 17:12 Keugon