unknownskl / greenlight

Greenlight is an open-source client for xCloud and Xbox home streaming made in Typescript.
MIT License
2.21k stars 124 forks source link

[Bug] Console Stream doesn't work in another network #1177

Closed lucasrossi95 closed 7 months ago

lucasrossi95 commented 7 months ago

Describe the bug

Hi! The app works flawlessly when i'm in the same network as my Xbox Series X, but when i'm on another network it just shows a black screen with the message "Connecting to console...".

I read a couple solved bugs that mentioned configuring the router, but that shouldn't be necessary since I tried the following alternatives using another network and both of those work:

If those 2 options work without configuring the router, my guess is something is not letting Greenlight connect via an outside network. Needless to say, Greenlight is a much better option, so i'd love to use it instead of those other 2 options above.

To Reproduce

No response

Expected behavior

No response

Environment

- OS: MacOS Sonoma 14.1.1
- Device: Macbook Pro M1
- Greenlight version: 2.2.1

Anything else?

No response

New issue

unknownskl commented 7 months ago

Port 9002 needs to be forwarded in your router. Can you try that and then try to start a stream from a remote network?

The official Xbox app uses Teredo to connect remotely which Greenlight does not support and thus port 9002 needs to be forwarded.

lucasrossi95 commented 7 months ago

Sorry for my ignorance, but this is what my modem shows when I click on the port forwarding option. Do you know what should I put here?

image

Maybe that helps other non-technical people like me.

unknownskl commented 7 months ago

Try these settings: Common service: Other Service name: can be anything you want, xbox for example Service type: tcp/udp Ipv4 address: fill in your Xbox ip address. Can be found in the Xbox settings Internal port: 9002 Start port: 9002 End port: 9002

lucasrossi95 commented 7 months ago

Thank you! Will try that and come back to tell you if that worked :)

v-127 commented 7 months ago

I did open the port correctly but still won't connect, this is the error it gives in terminal

[1301:0317/022750.277240:ERROR:vt_video_encode_accelerator_mac.cc(953)] Call NotifyErrorStatus(): code=7, message=VTCompressionSessionCreate failed: Error Domain=NSOSStatusErrorDomain Code=-12902 "(null)"

And this error on webUI Stream error result: Failed Details: [AgentCommandError] Agent : -2147019873 : Timed out waiting for Cloud Streaming Service to be ready. : State ServerStartStreamingV2CommandSent

lucasrossi95 commented 7 months ago

Try these settings: Common service: Other Service name: can be anything you want, xbox for example Service type: tcp/udp Ipv4 address: fill in your Xbox ip address. Can be found in the Xbox settings Internal port: 9002 Start port: 9002 End port: 9002

That worked! Thank you :)