moonlight-stream / moonlight-chrome

GameStream client for ChromeOS
GNU General Public License v3.0
741 stars 165 forks source link

Using general programs #508

Closed seungyoungshin closed 2 years ago

seungyoungshin commented 3 years ago

Can I use general programs instead of supported games?

I set both PCs window 10 and Ubuntu 18.04. I faced error message when I launched moonlight on my Ubuntu.

jorys-paulin commented 3 years ago

Hello, yes you can add custom programs, it's explained in our setup guide. Does the error appen with any application/game?

However, please note that this version is deprecated in favor of Moonlight Qt, so I'd recommend using this one of that's possible

seungyoungshin commented 3 years ago

Thank you for quick response. I had tested in my company so I will attach a log two days later.

seungyoungshin commented 3 years ago

My Testing is run in the company's network environment.

I have set up a media player on the GFE, and when I launch moonlight on Ubuntu client, the media player was invoked. During RTSP handshaking, an error occurs as shown in the attached log.

00:00:23 - Qt Info: Interface Type: QNetworkInterface::Ethernet
00:00:23 - Qt Info: Interface MTU: 1500
00:00:23 - SDL Info (0): Initializing platform...
00:00:23 - SDL Info (0): done
00:00:23 - SDL Info (0): Resolving host name...
00:00:23 - SDL Info (0): done
00:00:23 - SDL Info (0): Initializing audio stream...
00:00:23 - SDL Info (0): done
00:00:23 - SDL Info (0): Starting RTSP handshake...
00:00:33 - SDL Info (0): RTSP SETUP streamid=audio request failed: 552
00:00:33 - SDL Info (0): failed: 552
00:00:37 - SDL Info (0): Connection timed out after 3 seconds
00:00:37 - SDL Info (0): Cleaning up audio stream...
00:00:37 - SDL Info (0): done
00:00:37 - SDL Info (0): Cleaning up platform...
00:00:37 - SDL Info (0): done

I tried rebooting and updating the driver by referring to other issues, but I have the same problem. I used a moonlight which was installed by snap install.

I attach the Internet Streaming Tester log on server side.

Moonlight Internet Streaming Tester v5.5.3.0

Checking if GameStream is enabled...
Checking power settings...
Checking network connections...
Checking for anti-virus and firewall software...
Testing GameStream connectivity on this PC...
        Testing TCP 47984...
        Testing TCP 47989...
        Testing TCP 48010...
        Testing UDP 47998...
        Testing UDP 47999...
        Testing UDP 48000...
Testing GameStream connectivity on your local network...
        Testing TCP 47984...
        Testing TCP 47989...
        Testing TCP 48010...
        Testing UDP 47998...
        Testing UDP 47999...
        Testing UDP 48000...
Detecting public IP address...
        Testing UPnP...
        Testing NAT-PMP...
        Testing STUN...
Unable to determine your public IP address. Please check your Internet connection or try again in a few minutes.

I thought of it as a local network because it is the same network as the company, but I wonder if it should be connected to the Internet. I can't do public ip and port mapping because I don't have permission.

Below is server side log

#8(D)[2021-05-06 06:59:50,978]=15:59:50={33480}<NattHolePunch>    Address is invalid - invalid
#9(W)[2021-05-06 06:59:50,978]=15:59:50={33480}<NattHolePunch>    Address: ... is not valid
#0(W)[2021-05-06 06:59:50,978]=15:59:50={33480}<NattHolePunch>    NattHolePunch: Add destination addresses failed since it is empty for port 48000.
#1(I)[2021-05-06 06:59:50,978]=15:59:50={33480}<NvscStreamingSes> Connection setup: audio stream port 48000 (2)
#2(D)[2021-05-06 06:59:50,978]=15:59:50={33480}<RtspHandshake>    on connection setup result:0
#3(D)[2021-05-06 06:59:50,978]=15:59:50={33480}<RtspHandshake>    serverTransport size:3 value:...
#4(I)[2021-05-06 06:59:50,978]=15:59:50={33480}<RtspServerObserv> Observer SETUP: result 200, new session ID 656163184, server transport ...
#5(I)[2021-05-06 06:59:50,978]=15:59:50={33296}<StreamSdkEvents>  Invoking diagnosticsEventRaised RtspSetup
#6(I)[2021-05-06 07:00:10,978]=16:00:10={32756}<RtspHandshake>    Timeout on connecting attempt. Reset all states.
#7(I)[2021-05-06 07:00:10,979]=16:00:10={32756}<Server>           Server received a request to terminate the session.
#8(I)[2021-05-06 07:00:10,979]=16:00:10={32756}<Server>           Server has been asked to end the current streaming session.
#9(D)[2021-05-06 07:00:10,979]=16:00:10={32756}<Server>           Waiting to close the streaming session.
#0(I)[2021-05-06 07:00:10,979]=16:00:10={33296}<StreamSdkEvents>  Invoking clientEventCallback NvstEventDetail::NVST_ED_RTSP_TEARDOWN_SUCCESS: 
#1(D)[2021-05-06 07:00:10,979]=16:00:10={32756}<StopEvent>        Setting event 'Session'. Server: Session ended by main server (0x80030000 NVST_DISCONN_INTENDED)
#2(W)[2021-05-06 07:00:10,979]=16:00:10={32756}<NvThread>         Invalid thread handle, thread not started or already quit: Streaming session thread (thread id: 00000000)
#3(I)[2021-05-06 07:00:10,979]=16:00:10={32756}<NetworkRtpSink>   RTP socket for port 47998 is closed now. Sent packet count 0. Received packet count 0
#4(I)[2021-05-06 07:00:10,979]=16:00:10={32756}<NetworkRtpSink>   Closing internal socket
#5(I)[2021-05-06 07:00:10,979]=16:00:10={33296}<SciBase>          Sent event RtspTeardownSuccess: 
#6(I)[2021-05-06 07:00:10,979]=16:00:10={32756}<NattHolePunch>    NattHolePunch Socket on port::0 last PING sent: 38967.815182 ms, last PING received: 38967.815182 ms ago
#7(I)[2021-05-06 07:00:10,979]=16:00:10={32756}<NetworkRtpSink>   RTP socket for port 48000 is closed now. Sent packet count 0. Received packet count 0
#8(I)[2021-05-06 07:00:10,979]=16:00:10={32756}<NetworkRtpSink>   Closing internal socket
#9(I)[2021-05-06 07:00:10,980]=16:00:10={32756}<NattHolePunch>    NattHolePunch Socket on port::48000 last PING sent: 38968.341906 ms, last PING received: 38968.341906 ms ago
#0(I)[2021-05-06 07:00:10,980]=16:00:10={32756}<NetworkRtpSink>   RTP socket for port 47999 is closed now. Sent packet count 0. Received packet count 0
#1(I)[2021-05-06 07:00:10,980]=16:00:10={32756}<NetworkRtpSink>   Closing internal socket
#2(I)[2021-05-06 07:00:10,981]=16:00:10={32756}<NattHolePunch>    NattHolePunch Socket on port::0 last PING sent: 38969.451841 ms, last PING received: 38969.451841 ms ago
#3(D)[2021-05-06 07:00:10,981]=16:00:10={32756}<Server>           Streaming session terminated and session object deleted.
#4(I)[2021-05-06 07:00:10,981]=16:00:10={32756}<Server>           Server is handling session handshake completion.
#5(E)[2021-05-06 07:00:10,981]=16:00:10={32756}<Server>           RTSP handshake failed with status: 7
#6(I)[2021-05-06 07:00:10,982]=16:00:10={33296}<StreamSdkEvents>  Invoking clientEventCallback NvstEventDetail::NVST_ED_CLIENT_CONNECT_ATTEMPT_FAILED: Session handshake failed with status: 7
#7(I)[2021-05-06 07:00:10,982]=16:00:10={33296}<SciBase>          Sent event ClientConnectAttemptFailed: Session handshake failed with status: 7
jorys-paulin commented 3 years ago

Hello, seems like you're using Moonlight Qt instead of Moonlight Chrome, also if you haven't already I'd recommend checking the internet streaming section of the setup guide, and finally please note that your company might be blocking Moonlight at all, making it impossible to stream

seungyoungshin commented 3 years ago

You are right. I'm using Moonlight Qt. I'm so sorry, I though, my two PCs are in local network. Windows PC's IP is 10,113.174.XXX and Ubuntu PC's IP is 10.113.173.XXX. In this case, is it necessary to access the Internet, not the local connection?

cgutman commented 3 years ago

Moonlight doesn't require Internet access to stream, but it looks like GeForce Experience does.

I note in your logs, tons of messages like this:

#6(E)[2021-05-06 06:59:46,474]=15:59:46={33480}<natt>             Receive STUN Response: message is not a STUN message

It is trying to reach the Nvidia STUN server at s1.stun.gamestream.nvidia.com:19308 and failing. I know the RTSP handshake involves exchanging public IP addresses, so it makes sense that it will fail at that point if it's not able to reach the STUN server.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.