rock88 / moonlight-nx

Moonlight port for Horizon OS
GNU General Public License v3.0
399 stars 46 forks source link

Cannot find host pc #55

Open Llompi opened 3 years ago

Llompi commented 3 years ago

I am currently on 11.0.1 with atmosphere v. 0.17.1 on emmumc. I also have the 90dns servers set up on my switch network settings.

When I open moonlight my pc does not appear. When I try to enter the ip address manually the screen just freezes, unless I touch the screen, then the spinning circle moves a little bit and if I continue doing that it will eventually show a computer with the ip address below it but wont connect to it saying that it is inactive. I have used moonlight on my phone with no issues and when I run android on my switch moonlight works too.

I have tried launching moonlight while holding R (full RAM?) to see if that would help but no luck.

I originally installed moonlight from the Homebrew store, then I uninstalled it and dropped the nro file manually, same results both times.

Siju21 commented 3 years ago

Second! this is happening to me as well, except for me, once the PC finally appears, it crashes my switch.

windraver commented 3 years ago

I had the same issue here and did a hacky work around to make it work

https://github.com/rock88/moonlight-nx/issues/52

Llompi commented 3 years ago

I had the same issue here and did a hacky work around to make it work

52

How did you get it to work?

windraver commented 3 years ago

@Llompi , see this issue here I reported: https://github.com/rock88/moonlight-nx/issues/52

I modified the code to ignore errors. In short I determined that we could still connect because the host did in fact exist.

Shadowtuy commented 3 years ago

@Llompi , see this issue here I reported: #52

I modified the code to ignore errors. In short I determined that we could still connect because the host did in fact exist.

Could I get that version?

windraver commented 3 years ago

@Llompi , see this issue here I reported: #52 I modified the code to ignore errors. In short I determined that we could still connect because the host did in fact exist.

Could I get that version?

The code is in the issue I linked.

Shadowtuy commented 3 years ago

lets just say, I'm not exactly sure how to apply that. Little help? 😓

shenkkazoo commented 3 years ago

Also having the problem exactly as Llompi described, using the latest version of moonlight on switch version 12.0.0, atmosphere version 19.0.

Elpatii commented 3 years ago

Hello, I've the same problem. From the logs of Moonlight, I have a 200 response from my PC when checking with port 47989, but when checking with port 47984, I've a timeour or a SSL error.

2021-05-03 12:31:15 [INFO][CURL] Request:
http://192.168.1.37:47989/serverinfo?uniqueid=0123456789ABCDEF
2021-05-03 12:31:15 [INFO][CURL] Response:
<?xml version="1.0" encoding="UTF-16"?><root protocol_version="0.1" query="serverinfo" status_code="200" status_message="OK"><AuthenticationType>1</AuthenticationType><ConnectionState></ConnectionState><CurrentClient>0</CurrentClient><GfeVersion>3.22.0.32</GfeVersion><GsVersion>gs_04_31_29754594</GsVersion><HttpsPort>47984</HttpsPort><LocalIP>192.168.1.37</LocalIP><LocalIPs><Address>XXXX</Address></LocalIPs><LocalIPs><Address>192.168.1.37</Address></LocalIPs><LoginState>2</LoginState><MaxLumaPixelsH264>1721324928</MaxLumaPixelsH264><MaxLumaPixelsHEVC>1869449984</MaxLumaPixelsHEVC><Mode>0</Mode><PairStatus>0</PairStatus><ServerCapability>3895</ServerCapability><ServerCodecModeSupport>3843</ServerCodecModeSupport><ServerColorSpaceSupport>2</ServerColorSpaceSupport><SupportedDisplayMode><DisplayMode><Height>2160</Height><RefreshRate>60</RefreshRate><Width>3840</Width></DisplayMode><DisplayMode><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></DisplayMode><DisplayMode><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></DisplayMode><DisplayMode><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></DisplayMode><DisplayMode><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></DisplayMode><DisplayMode><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></DisplayMode></SupportedDisplayMode><accountId>XXXXXXX</accountId><appversion>7.1.431.0</appversion><currentgame>0</currentgame><gamelistid>XXXXX</gamelistid><gputype>NVIDIA GeForce RTX 2080</gputype><hostname>XXXXXX</hostname><mac>XXXXXXXX</mac><numofapps>0</numofapps><resyncSuccessful>0</resyncSuccessful><state>MJOLNIR_STATE_SERVER_AVAILABLE</state><uniqueid>867e2c1a-e4e1-4884-b6e5-2479478fd105</uniqueid></root>
2021-05-03 12:48:20 [INFO][MOONLIGHT] Starting...
2021-05-03 12:48:20 [INFO][CURL] libcurl/7.69.1 mbedTLS/2.16.6 zlib/1.2.11
2021-05-03 12:48:20 [INFO][CURL] Request:
https://192.168.1.37:47984/serverinfo?uniqueid=0123456789ABCDEF
2021-05-03 12:50:08 [ERROR][CURL] error: SSL connect error

Moonlight is working well from inside or outside network on my PC, my phone and my Shield TV.

manaboy commented 3 years ago

Ok so I found with the latest version of moonlight 12.0 and latest atmosphere 12 there is an isses witj moonlight detecting my pc, find host never works and from the android version I can easily find the host, so I got my pc IP address and manually try adding it via the Add Host on moonlight NX, it gave the connection timed out error at first so I tried again and it added it.

So if you get connection timed out error and you're sure you have the right host IP, try again, it should work by the 3 try.

Hope this helps

alcoma commented 3 years ago

I know this issue is getting stale, but I was having the same problem and fixed it. Make sure that you are launching the homebrew menu via title takeover (pressing 'r' while launching a GAME). This allows it to work flawlessly. If you launch the homebrew menu in applet mode (holding ZR while opening the album) it can cause this issue.

manaboy commented 3 years ago

Thanks worked a charm.

songyuyx commented 2 years ago

I have meet the same issue...

songyuyx commented 2 years ago

我知道这个问题已经过时了,但我遇到了同样的问题并修复了它。确保您通过标题接管启动自制菜单(在启动 GAME 时按“r”)。这使它能够完美地工作。如果您以小程序模式启动自制菜单(在打开相册时按住 ZR)可能会导致此问题。

May I have more help about the steps. sry for my noob.