moonlight-chrome
moonlight-chrome copied to clipboard
Establish connection via ssh tunnel
Hey, I find myself in a network where I cannot configure port forwarding on the router. Would it be possible to set up moonlight to use port forwarding through ssh? Given weak encryption, would the performance suffer significantly?
It would be interesting if anyone attempted this and could share experiences.
Mat
I'd go for an OpenVPN setup (over UDP) if you can. It will perform better than trying to forward Moonlight's data over a TCP-based SSH session.
Thanks cgutman. Saved my life today with this ideea. Was struggling at work to play over wifi with alot of stuttering and slowdowns since on ethernet most ports are blocked and I saw this post. OpenVPN is no piece of cake to configure , both as server and client. Took me about 2 hours, but once I got it going I was able to run moonlight on my former "blocked-LAN" with no stuttering or hiccup at all.
Unfortunately port 22 is the only one accessible to me. If moonlight actually relies on UDP (I think it does?), I'd have to forward those too. Is that a dealbreaker for moonlight? Thx @cgutman
Yes you can use it by forwarding your ports !
You can do it via SSH or... I personally use https://github.com/fatedier/frp/ because it is super easy to use.
Run the frps
(serveur) with default config on your computer, and a client with following config on your box with gameStream :
[common]
server_addr = IPOFYOURCOMPUTER
server_port = 7000
[gamestream_tcp_47984]
type=tcp
local_ip=127.0.0.1
local_port=47984
remote_port=47984
[gamestream_tcp_47989]
type=tcp
local_ip=127.0.0.1
local_port=47989
remote_port=47989
[gamestream_tcp_48010]
type=tcp
local_ip=127.0.0.1
local_port=48010
remote_port=48010
[range:gamestream_udp]
type = udp
local_ip = 127.0.0.1
local_port = 47998-48010,48011
remote_port = 47998-48010,48011
[gamestream_udp]
type=udp
local_ip=127.0.0.1
local_port=5353
remote_port=5353
If your computer (with the client) is behind a NAT too and you can't forward port 7000, setup the server on a VM or whatever in a datacenter nearby and use it as a middle man...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Yes you can use it by forwarding your ports !
You can do it via SSH or... I personally use https://github.com/fatedier/frp/ because it is super easy to use.
Run the
frps
(serveur) with default config on your computer, and a client with following config on your box with gameStream :[common] server_addr = IPOFYOURCOMPUTER server_port = 7000 [gamestream_tcp_47984] type=tcp local_ip=127.0.0.1 local_port=47984 remote_port=47984 [gamestream_tcp_47989] type=tcp local_ip=127.0.0.1 local_port=47989 remote_port=47989 [gamestream_tcp_48010] type=tcp local_ip=127.0.0.1 local_port=48010 remote_port=48010 [range:gamestream_udp] type = udp local_ip = 127.0.0.1 local_port = 47998-48010,48011 remote_port = 47998-48010,48011 [gamestream_udp] type=udp local_ip=127.0.0.1 local_port=5353 remote_port=5353
If your computer (with the client) is behind a NAT too and you can't forward port 7000, setup the server on a VM or whatever in a datacenter nearby and use it as a middle man...
I don't have access to the "blocked client" now to test this, but tell me if got this right. is 7000 de port which the client use to communicate with the server to forward all the "blocked" ports data and could this port be something else (ex 1196) ?
Yes you can use it by forwarding your ports !
You can do it via SSH or... I personally use https://github.com/fatedier/frp/ because it is super easy to use.
Run the
frps
(serveur) with default config on your computer, and a client with following config on your box with gameStream :[common] server_addr = IPOFYOURCOMPUTER server_port = 7000 [gamestream_tcp_47984] type=tcp local_ip=127.0.0.1 local_port=47984 remote_port=47984 [gamestream_tcp_47989] type=tcp local_ip=127.0.0.1 local_port=47989 remote_port=47989 [gamestream_tcp_48010] type=tcp local_ip=127.0.0.1 local_port=48010 remote_port=48010 [range:gamestream_udp] type = udp local_ip = 127.0.0.1 local_port = 47998-48010,48011 remote_port = 47998-48010,48011 [gamestream_udp] type=udp local_ip=127.0.0.1 local_port=5353 remote_port=5353
If your computer (with the client) is behind a NAT too and you can't forward port 7000, setup the server on a VM or whatever in a datacenter nearby and use it as a middle man...
tested your confing. sad to say it doesn't work. keep getting errors about port 5353 not being accessible