moonlight-stream / moonlight-qt

GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
GNU General Public License v3.0
9.78k stars 566 forks source link

Custom Wol/w port #1073

Open Cokkie203 opened 11 months ago

Cokkie203 commented 11 months ago

My stream is working perfectly👌,no problem on that The problem is that the wake on wan (for my case) is not working because the ports I have access to aren't being targeted My ISP uses a technique of dividing an IP address by 4 and giving a quarter of the ports to each person (to save on ip addresses because they are running extinct) Because of that I currently have the last quarter of ports (49152 to 65535) (The ports stacks are as following 1;16363/16364;32767/32768;49151/49152;65535)

I now need that the app sends an packet to a custom port Or to have more ports being sent packets

Currently running sunshine and Moonlight qt & Moonlight Android (would like to use Moonlight switch but custom ports don't work😭)

cgutman commented 11 months ago

I think this should be supported with dd9de3fcb45e715989d982b9e765b6b00ddec20f in the current nightly builds.

Assuming you're on Windows, here's a link to the latest nightly that you can try: https://ci.appveyor.com/project/cgutman/moonlight-qt/builds/48135370/job/si4gu7u6asd7n8a8/artifacts

cgutman commented 10 months ago

It looks like Android also does it since https://github.com/moonlight-stream/moonlight-android/commit/7af290b6e18d3cd649da7c6a03f3b76ac8d08e8f and I just implemented it for iOS in https://github.com/moonlight-stream/moonlight-ios/commit/b9dbfdd82f463f27614373acac0ec8403d46fe51.

Cokkie203 commented 10 months ago

Sorry for the late reply

I currently have installed V11.0 on my (android) phone, but it doesn't work I also have installed the portable build you sent, but it doesn't work either.

Could you tell me what are the ports you send packets, if I have set the custom port 55000? So that I can verify if I have the right ports open?

cgutman commented 10 months ago

The ports used by Sunshine are all in a set that is offset from the base port (55000 in your case, 47989 is the default). Moonlight sends WoL traffic on the same ports used by regular streaming, so in your case that would be (55000 - 47989) + 47998 = 55009.

Cokkie203 commented 10 months ago

It finally works!🥳 Thank you for your help I presume this fonction will come to stable qt soon Could I just ask you to help the moonlight switch devs (because of my custom ports it doesn't work 😭 but I think he has also other things to do so he can't or something) If you can't it's no biggie