acmiyaguchi / game.moonlight

Moonlight client for Kodi Games
18 stars 9 forks source link

[networking] pairing manager fails to connect on local network #1

Closed acmiyaguchi closed 9 years ago

acmiyaguchi commented 9 years ago

Pairing is functional, but it does not work on physically separated devices.

A virtual machine connected to the host device can successfully pair with the host, where a device on the local network can't. By changing the vm network settings from bridged to NAT on the host, I can reproduce the issue I have been having on a physically separated device.

This might be a routing issue, but I won't be able to test until I can get my hand on a new router. Below is some reference material pulled from the main XDA moonlight post.

Ports to forward manually:
TCP 35043, 47984, 47989, 47995, 47996, 48010
UDP 47998, 47999, 48000
acmiyaguchi commented 9 years ago

There's a high chance that it's something to do with the game.moonlight client than with the network setup. I've tested the following without modifying any network configurations.

This could potentially be an issue with using libcurl, however this seems unlikely since the http routines were taken from moonlight-embedded.

A reimplementation of NvHTTP::openHttpConnection could be done using a library like cpp-netlib.

acmiyaguchi commented 9 years ago

The source of the issue seems to be with openssl support in some versions of libcurl. I manually specified the url on the command line using curl, which meant that it had to be some sort of configuration problem while compiling or otherwise setting up curl. I fixed the 404 errors by installing the following package on ubuntu 14.04.

apt-get install libcurl4-openssl-dev