Connection terminated after a few seconds of streaming over the internet (but not on LAN) #182
Replies: 0 comments 31 replies
-
any update on this???? |
Beta Was this translation helpful? Give feedback.
-
I'm unable to connect on lan or over internet. Immediately get the "Connection Terminated" message |
Beta Was this translation helpful? Give feedback.
-
Hey I was having the same issue today. I think the error occurred in Error: Initial Ping Timeout I tried to read the source code in the file stream.cpp, it seems that it is trying to use a ping mechanism as a heartbeat connection check. in Line 1312, the receive ping function try to use PING to sense the existence of the client. Since ping is using ICMP which will create hassle during port forwarding, maybe instead of using ping, a heartbeat message through UDP with a response mechanism can perform the same functionality? I had a very brief read of the code, hope to hear from you soon. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue, I tried to update my Virtual Sink in the devices with the Steam Streaming Speakers Device ID and it didn't work. My setup is the following: I am trying to play RetroBat (RetroArch frontend) on my Nvidia Shield with Sunshine / Moonlight. I have 3 apps / links on my sunshine computer: Desktop, Retrobat and Steam. So if I try to play the Retrobat app, it crashes after 5 secs with "Connection Terminated". My funny workaround is I launch the Steam app on moonlight, choose the option Exit Steam (so it closes steam on my desktop, but remain connected), and then it switches automatically to the next opened app on my desktop which is RetroBat. I can then play my games like that. But whatever I do I get disconnected if I choose the RetroBat app on moonlight. |
Beta Was this translation helpful? Give feedback.
-
I'm having the exact same issue as everyone else. Tried updating the "Virtual Sink" and still the same issue. It was working perfect until my windows updated. I get disconnected after a few seconds of being connected and get a "Connection Terminated" error. When I check the Sunshine cmd prompt as to why it disconnected I get an "Error: Initial Ping Timeout". This is getting extremely frustrating.... |
Beta Was this translation helpful? Give feedback.
-
I'm also seeing this issue after updating windows last night. |
Beta Was this translation helpful? Give feedback.
-
The virtual sink and audio sink issues have been fixed in the latest nightly build. You should specify the devices by name rather than ID in nightly and v0.20.0+ (when it's released). Nightly downloads are here if you want to try them out: https://github.com/LizardByte/Sunshine/releases/tag/nightly-dev |
Beta Was this translation helpful? Give feedback.
-
I'm having the same problem. Sunshine works fine locally, but throws the timeout error when I access it from an external network.
I have tried the latest stable (0.20.0) and the nightly. Problem persists |
Beta Was this translation helpful? Give feedback.
-
Unfortunately have the same issue:
Happy to provide logs/configs if needed, using latest stable (0.20.0) and Moonlight (4.3.1), streaming via NVIDIA Experience (mstsc) seem |
Beta Was this translation helpful? Give feedback.
-
Alright guys, I have found the solution of this problem, at least in my case it was the router settings. I hope this will help somebody too because it drives me crazy :) |
Beta Was this translation helpful? Give feedback.
-
I still have the "initial ping timeout" issue. I don't enable uPnP because it has security issues: https://www.upguard.com/blog/what-is-upnp . Instead, I manually forward all the required ports to a separate VPN which allows me to securely connect through the internet. What happens is that streaming works fine in the LAN, but when access through the port-forwarded VPN I get the "Connection Terminated" message and I see the "Error: Initial Ping Timeout" in Sunshine logs. Can we add a configuration option to disable disconnection if the ping fails? |
Beta Was this translation helpful? Give feedback.
-
Also running into this issue when connecting remotely through a WireGuard vpn to a different subnet, and then port-forwarding: 47800 47998 47999 48010 4989 47984 on a windows pc. Running sunshine v0.23.1 on windows. I have no issues with connecting through my steamdeck while on the same subnet. |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the nightly release?
Describe the Bug
I have set up Sunshine on my gaming PC and Moonlight on both a Chromebook and Android phone. I am able to connect and stream on LAN without issues, but when I try to access it over the internet, it connects and I am able to move the mouse as as expected but only for about 10 seconds.
After that, the stream ends and a variation of a Connection Terminated error appears, depending on what platform Moonlight is installed on.
Expected Behavior
On WAN / remote / internet, I should be able to maintain a stream just as I can on LAN.
Additional Context
This seems somewhat similar to this issue/discussion: https://github.com/LizardByte/Sunshine/discussions/927
However, my logs do not match.
I have the following ports forwarded (both TCP and UDP) in my router. Notably not using uPNP, is that an issue?
47989 47984 48010 47998 47999 47800
Host Operating System
Windows
Operating System Version
Windows 11 22H2 (25300.1000)
Architecture
64 bit
Sunshine commit or version
0.18.4 and nightly
Package
Windows - installer
GPU Type
Nvidia
GPU Model
GeForce RTX 3060 Ti
GPU Driver/Mesa Version
528.49
Capture Method (Linux Only)
No response
Config
Apps
Nope, every app (including nothing - the desktop) has this issue over the internet
Relevant log output
Beta Was this translation helpful? Give feedback.
All reactions