No internet connection
  1. Home
  2. Technical Support

TinyPilot lagging on one and not the other

By @arkahmw
    2024-10-24 14:46:22.374Zassigned to
    • @david

    Hi, I have multiple TinyPilot devices, one is working great when connected, but the other one is lagging severely. They both are on H264 setting. one follows my mouse live time, the other one lags behind at least 5-7 seconds.

    Is there any other setting I should be looking at?

    See log attached for the one with the issue

    https://logs.tinypilotkvm.com/cMb3cvAe

    Solved in post #6, click to view
    • 7 replies
    1. David @david2024-10-25 11:05:01.762Z

      Hi @arkahmw, I'm sorry you're running into this latency on one of your TinyPilot devices.

      Thanks for sharing that log! I can see that although you've selected H.264 streaming, your device is actually using MJPEG streaming, which might explain this latency.

      In instances like this configuring a STUN server often helps establish an H.264 stream. Could you try configuring a STUN server to see if that helps?

      Can I ask whether you're connecting to your TinyPilot on the local network, or are you connecting remotely over the internet using a third-party service like Tailscale?

      Please let me know if you have any questions.

      1. A@arkahmw
          2024-10-28 16:45:07.924Z

          I'm not using any 3rd party service, I just added a static IP in my router and then forwarded the port

          1. David @david2024-10-29 12:17:54.490Z

            Thanks for those details. Have you tried configuring a STUN server here to try and make your TinyPilot establish the H.264 connection?

            Is your other TinyPilot (the one that isn't lagging) set up identically to the one that is? i.e., forwarding the port with a static IP?

            1. A@arkahmw
                2024-10-29 14:56:53.721Z

                I have not used a stun server for either, they're both set up identical

                1. David @david2024-10-30 11:59:09.754Z

                  Thanks!

                  Could you share a TinyPilot log from the TinyPilot that's not lagging for me to review?

                  Could you configure a STUN server and let me know if that helps establish the H.264 connection on the lagging TinyPilot?

                  Please let me know if you have any questions.

                  ReplySolution
                  1. A@arkahmw
                      2024-10-30 18:38:58.233Z

                      I think the STUN server worked

                      https://logs.tinypilotkvm.com/4us1fgk9

                      1. David @david2024-10-31 12:02:38.535Z

                        Thanks for the update @arkahmw! I'm glad configuring a STUN server worked.

                        Feel free to reach out again if you have any questions.

            2. Progress
              with handling this problem
            3. A@arkahmw accepted an answer 2024-10-30 20:31:54.653Z.