Jump to content

Emby on vpn computer


Recommended Posts

Posted

Need some help. It may have been asked before, but I have my Emby server on a computer that is protected with vpn. I still need to access the Emby server from outside my network, but I think the VPN is causing a problem as I can't connect unless I connect while on my wifi around the home. I have went into my Linksys router and setup a port forward to port 8096, but still can't connect outside my local network. What else do I need to do? Thanks.....

Happy2Play
Posted

Your VPN is changing the WAN address EMBY is seeing.  If your VPN service does not allow port forwarding, then your only option would be connecting via your real WAN:port address.

 

I guess you could put your real WAN address in "External domain" on Dashboard-Network.  But if your WAN address does actually change then you will have to update.

Posted

Looks like I may have to move my media files and Emby Server over to an unprotected, non-vpn'd system. Changing external domain didn't work.

Posted

I have this same setup, I have emby on a windows machine with a VPN over the top, then I have raspberry pi running NGINX as a reverse proxy through the internal IP

Posted (edited)

OP how about you start by describing your network setup in more detail and troubleshoot in a logical order?

 

If your VPN is running on your router, you should still be able to connect to Emby through your normal, non-vpn'ed WAN IP. Not sure if this would still work if you use a VPN application on the Emby computer to connect to the VPN server though I suppose it could work if Emby binds to the correct NIC/IP.

 

1. Turn off the VPN on the Emby computer for testing.

2. Make sure the Emby computer is allowing Emby through the firewall (on that PC).

3. Make sure the Emby computer has a static IP configured.

4. Configure a port forward to 8096 to the static IP on your router.

5. With your phone connect to your home WiFi go to whatismyip.com or similar and check your WAN IP.

6. Go to the Emby computer and do the same. The WAN IP on your phone and Emby computer should be the same.

7. Disconnect your phone from your WiFi, open whatismyip.com again and confirm your IP has changed.

8. Open the Emby app and configure http://your_wan_IP:8096 as the server.

 

Usually that should to do the trick. Now reconnect your VPN and check if you can still connect to Emby from an outside network. If you can't you may try the following:

 

1.  Configure your VPN on your router instead of the local PC. I'd say this is preferred over running an app on your PC regardless of Emby. This way a simple port forward should be enough to connect to Emby while other traffic will still be routed over the VPN.

2. Use NGINX or Apache as a reverse proxy. This is fairly easy to set up (just google NGINX reverse proxy) and it also has some nice additional benefits such as blocking countries you don't want to access your server and easy https encryption by using lets encrypt. The downside is you need to run the proxy server somewhere though assuming your Emby server is online 24/7 you could just install NGINX in VirtualBox.

3. While you're at it you might want to install some dynamic DNS software (duckdns.org is good) so you can connect through Emby using a domain rather than an IP. This is assuming your ISP doesn't provide you with a static IP.

Edited by Ponyo

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...