this post was submitted on 31 Mar 2025
13 points (93.3% liked)

Linux Gaming

17541 readers
532 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 2 years ago
MODERATORS
 

I'm trying to stream games over the internet for me and a friend.

Connecting with my Android phone via my local network works fine.

Trying to add a computer manually with an IP address does not.

I went to https://www.showmyip.com/ to get my IP address and entered that, it didn't work. I tried adding the port in the Sunshine web UI after the IP address, that didn't work.

I've read this could be a firewall issue. I disabled ufw and connecting still does not work.

I tried enabling UPnP in the Sunshine web UI, and that didn't solve the problem.

What's the recommended way to connect to a PC manually? They're not very clear about what information is needed, even specifying that we need to include a port would help.

top 7 comments
sorted by: hot top controversial new old
[–] habitualTartare@lemmy.world 9 points 2 days ago

Know that doing this is not advised and your computer will now be directly accessible to the Internet. As long as you're fine with the potential for vulnerabilities and that risk or just don't care:

You need to setup port forwarding on the local router for the computer you want to connect to and check the docs for origin_web_ui to include "wan" (Internet). Docs also describe encryption configurations. https://docs.lizardbyte.dev/projects/sunshine/latest/md_docs_2configuration.html#port

Know that your network router (like 192.168.1.1) keeps everything on your network from receiving any connections that weren't already requested by a computer or phone on your network. Port forwarding opens a hole into your network and that computer now has to protect itself so keep it updated, especially sunshine, and I'd recommend not turning off ufw but just adding some rules to allow the sunshine traffic.

[–] MXX53@programming.dev 5 points 2 days ago (1 children)

I may be assuming here, but I did not see it mentioned.

With the setup you have it will not work. Just having a public IP does not tell your router what internal device and port to send the traffic to and your router is not going to allow this. You would need to forward that port internally into your network.

However, DO NOT DO THIS! You do not want to allow traffic from the public internet into your computer. You are asking for trouble.

I am going to solution this without ever having done it, so cut me some slack.

You should look at something like tailscale. Tailscale allows you to create a custom wire guard vpn that allows you to connect to a device running tailscale from the public internet. I think you can have 3 account for free. Once connected to tailscale, you will see devices on the tailscale network and their relative IPs to the tailscale network. Connect to that IP and port and that should allow you to connect.

[–] lumony@lemmings.world 1 points 2 days ago (2 children)

So... I need to download another program and learn how to use it? My god, it never ends.

It's a shame this isn't as easy to configure as Parsec.

[–] DesolateMood@lemm.ee 6 points 2 days ago

My god, it never ends

Welcome to the self hosted world friend. Also, your friend is going to need to download Tailscale also if they want to connect to your computer

[–] habitualTartare@lemmy.world 2 points 2 days ago (1 children)

If you want to use sunshine over the Internet you can

[–] warmaster@lemmy.world 1 points 2 days ago

download another program like a VPN (tailscale) or peer to peer (ZeroTier: https://github.com/moonlight-stream/moonlight-docs/wiki/Setup-Guide#zerotier)

@lumony@lemmings.world just chose Tailscale or ZeroTier and follow that tutorial. Be strong my friend, selfhosting keeps Parsec's possibly dirty fingers off your important data.

[–] jet@hackertalks.com 1 points 2 days ago* (last edited 2 days ago)

Use a VPN like zerotier or tailscale to connect to your game host server.

This will punch through your firewall and it won't expose your server to the raw internet