Want to access your YAMS server while you’re away from home? Maybe stream your movies during a business trip or let family members access your media server from their own homes? This guide covers your options - but first, let’s talk about why this is tricky! 🤔
Exposing any server to the internet is inherently risky! Your YAMS installation contains powerful tools that could be misused if compromised. Before proceeding, understand that you’re taking responsibility for:
We strongly recommend against exposing YAMS directly to the internet without proper security measures.
Making your local server accessible from the internet involves several challenges:
If you have a static IP or want to deal with dynamic DNS, you’ll need a way to map a domain name to your IP address.
Check out this comprehensive list of free DNS services: Awesome DNS - Free DNS Services
These services create secure tunnels from your local server to the internet, often without requiring router configuration.
Explore various tunneling and VPN solutions here: Awesome Tunneling
Popular options include:
Before exposing YAMS to the internet, consider these safer alternatives:
Set up a VPN server (like WireGuard) and connect to your home network remotely. This keeps your media server completely private while still allowing remote access.
Download content to your devices for offline viewing when you’re away from home.
If you decide to expose YAMS to the internet despite the risks:
While it’s technically possible to expose YAMS to the internet, it’s a complex topic that requires careful planning and ongoing maintenance. The security implications are significant, and the setup can be challenging even for experienced users.
For most people, we recommend sticking with local network access or using a VPN solution for remote access. It’s simpler, safer, and often just as effective for typical use cases.
People often ask me how I handle remote access for my own YAMS setup. Here’s my hybrid approach that balances security and usability:
I use a combination of Cloudflare Tunnels and WireGuard VPN to solve different use cases:
VPS Setup:
Home Network:
The Magic DNS Setup: Since my Raspberry Pi bridges both my home network and the WireGuard network, I configured Pi-hole to route custom domains internally:
# in /etc/pihole/pihole.toml
hosts = [
"10.8.0.2 emby.my.domain",
# other hosts for different services
]
In this configuration, 10.8.0.2
is the WireGuard IP of my Raspberry Pi, and emby.my.domain
is the custom domain that gets routed to Nginx Proxy Manager running on that Pi.
How it Works:
emby.my.domain
get routed to my Pi-holeBenefits of This Approach:
Here’s how my setup looks visually:
This setup gives me the best of both worlds - easy access for family members and secure, full control for myself when managing the server remotely.
This is advanced territory! If you’re determined to proceed:
Remember: The safest server is one that’s not exposed to the internet at all! 🔒
Thanks to “Andy The Goat” on Discord for contributing to this guide!