Moonlight won't connect to host pc -- it just begins and then affter a few seconds says "connection terminated"
Opened this issue · 6 comments
hello, everytime i try to connect from my tv to my pc moonlight begins the pairing process and then after a few seconds terminates the connection (disclaimer my pc wasn't showing up so i connected it through IP address if that makes any difference). is there some sort of setting i missed during set up that might fix this issue?
Have you tried another codec, like HEVC ?
same issue, tried different codecs. Nothing shown in Sunshine logs except for "client disconnected" and all other clients on different devices work well.
Same here. Using sunshine, desktop connection goes black screen and "Connection terminated" appears after a few seconds. On Steam Big Picture, it launches and hangs at Steam logo, but inputs from controller connected to TV works.
Tried different settings on Sunshine side and on Moonlight side, nothing works. Connection from iPhone using the same network works flawlessly.
EDIT: got it actually connecting at 25MBPS bitrate and 1080p resolution, but it's so laggy that it's not usable.
Same for me. I've tested several settings and it always happens the same. I made it work a day before by just rebooting the PC and the TV, but then I changed the another setting and it stopped working again. Quite painful, it makes it unusable in my case.
Edit: I tested using 25MBPS and 1080p and it stops happening.
Edit 2: I don't see any Error logs in the Sunshine troubleshooting tab.
Edit 3: I found this other issue in the original repository that looks kind of connected. Just in case it might be useful to anyone. (It wasn't useful to me)
Are you connected via Ethernet (TV) or WiFI ?
Also, do you fully restart the app between each codec changes ? (holding down on the "return" key or via the popup)
Issue might be related to #7
I'm connected via Ethernet (both the PC and the TV). I just tested again all the codecs and I restarted after each change and it didnd't work either.
I followed the tutorial to get logs from the link that you sent and I was able to get the following log file. Just from the beginning of the streaming, the client says that it expects more frames than the ones that it's getting, probably due to the changes in the bitrate.
These is a subset of the logs that I'm getting when I use a configuration of 1080p, 60FPS, 50Mbps and H264 codec:
messages.js:68 [messages.js, handleMessage] Message data: Connection Established
moonlight-wasm.js:1 Received first video packet after 400 ms
moonlight-wasm.js:1 Unrecoverable frame 1: 47+0=47 received < 73 needed
moonlight-wasm.js:1 Unrecoverable frame 2: 20+2=22 received < 69 needed
moonlight-wasm.js:1 Unrecoverable frame 3: 45+2=47 received < 65 needed
moonlight-wasm.js:1 Unrecoverable frame 4: 45+2=47 received < 65 needed
moonlight-wasm.js:1 Unrecoverable frame 5: 45+2=47 received < 67 needed
moonlight-wasm.js:1 Unrecoverable frame 6: 45+2=47 received < 64 needed
If I use 35Mbps, the needed packages distribution has lower values (around 50), but the ones received are similar to the previous ones. More examples:
Unrecoverable frame 1: 45+0=45 received < 51 needed
Unrecoverable frame 2: 45+0=45 received < 53 needed
Unrecoverable frame 3: 45+0=45 received < 47 needed
Edit 1: I found this post and my setup also contains a Switch. I'm currently connected via Ethernet in the following fashion: PC -> Router -> Switch -> TV.
Edit 2 🥳: I just disconnected the switch and connected directly from the router to the TV and it works! I started a streaming with 100Mbps and it's working. My current setup is PC -> Router -> TV (No more switch).
Thank you for the link and for the help! I hope this keeps working 😅