Using Plex Server with a VPN

@jerry121802 said:
Mine has never stopped working with PIA and Xflak scripts, so I consider myself very lucky.

You really should yes. Mine has been hit or miss at best and lately hasn’t worked at all no matter what I try.

Updated versions (from like a year ago or so) of my script at https://xflak40.wordpress.com

I hear a bunch of people claiming the script doesn’t work. I’m not saying it will 100% work for everyone (because what does?), but I wouldn’t be surprised to learn if most people with problems are using outdated versions of the script. I’ve used it successfully on dozens of machines with various vpn providers and never had an issue

@XFlak said:
Updated versions (from like a year ago or so) of my script at https://xflak40.wordpress.com

I hear a bunch of people claiming the script doesn’t work. I’m not saying it will 100% work for everyone (because what does?), but I wouldn’t be surprised to learn if most people with problems are using outdated versions of the script. I’ve used it successfully on dozens of machines with various vpn providers and never had an issue

I appreciate you reply. I used your scripts for over a year without any problem, they worked great. Then I changed computers and had to re-download the most current version I could find and it’s been hit or miss ever since. I solved one problem related to DNS not resolving by setting my connection to use Google’s DNS servers rather than my ISPs but even though the scripts now are able to resolve the IPs I still am not getting the green check consistently while using PIA VPN.

With AirVPN with their port forwarding option I get and keep the green checkmark and remote access works all the time. I’ve tried using PIAs port forwarding but it simply doesn’t work ever…

I have used Xflak’s same version 6 script for as long as it has been out… maybe even more than a year. The work put in on that is much appreciated. The thing is, there may be nothing wrong with the script. It involved some configuration and editing, as can be seen from other comments, but I couldn’t get it to work initially. Then one day, it started to work. I have always been inclined to believe that Windows is the culprit, but I really have no idea - maybe its the various versions of PIA. Then off for a couple months, then on again. Then it stopped again, and just this week it appears that we’re remote once more. There just appears to be too many variables for the process to be consistent, which makes it tough for non-expert users to to be up and running all the time.

I have used Xflak’s same version 6 script for as long as it has been out… maybe even more than a year. The work put in on that is much appreciated. The thing is, there may be nothing wrong with the script. It involved some configuration and editing, as can be seen from other comments, but I couldn’t get it to work initially. Then one day, it started to work. I have always been inclined to believe that Windows is the culprit, but I really have no idea - maybe its the various versions of PIA. Then off for a couple months, then on again. Then it stopped again, and just this week it appears that we’re remote once more. There just appears to be too many variables for the process to be consistent, which makes it tough for non-expert users to to be up and running all the time.

Hi All,

I share my Plex with friends and family and in particular, Channels from the Unsupported App Store, like G2G an BitTorrent.

Twice now I’ve gotten notices from my Cable provider for something someone streamed through Channels.

Correct me if I’m wrong, I noticed that many use VPN’s but it only works with port forwarding that bypass the actual VPN connection - thereby not protecting what you and others watch on Plex.

I actually want to use the VPN (TorGuard is who I use) to mask activity of what is watched on Plex.

The question is, will I be able to share/remotely access my Plex if my PMS host computer has an active VPN connection on it all the time?

@amassaic said:
Hi All,

I share my Plex with friends and family and in particular, Channels from the Unsupported App Store, like G2G an BitTorrent.

Twice now I’ve gotten notices from my Cable provider for something someone streamed through Channels.

Correct me if I’m wrong, I noticed that many use VPN’s but it only works with port forwarding that bypass the actual VPN connection - thereby not protecting what you and others watch on Plex.

I actually want to use the VPN (TorGuard is who I use) to mask activity of what is watched on Plex.

The question is, will I be able to share/remotely access my Plex if my PMS host computer has an active VPN connection on it all the time?

I’m pretty sure that port forwarding doesn’t bypass the vpn it just forwards the traffic. Your ISP and the torrent clients and peers still see the VPN IP not your real IP. It’s like if you give our your old mailing address but have a forwarding address setup at the post office. Only the post office knows your new address everyone else only knows the old address. In this case the VPN provider is the only one who knows your real address and as long as your provider doesn’t keep logs as soon as you disconnect there is no record of your activity.

Just wanted to say thanks, Xflak’s script works great. Had to troubleshoot some issues because I couldn’t get it working at first. Figured out the issue. Make sure you port forwarding is for your correct PC’s IPv4. I guess at some point over the past few years my PC’s got jumbled around.

I would suggest you guys download directly from Xflak’s site for the most up to date version.
I’m using PIA by the way, works flawlessly.

cheers,
Jayslow

@jayslow said:
Just wanted to say thanks, Xflak’s script works great. Had to troubleshoot some issues because I couldn’t get it working at first. Figured out the issue. Make sure you port forwarding is for your correct PC’s IPv4. I guess at some point over the past few years my PC’s got jumbled around.

I would suggest you guys download directly from Xflak’s site for the most up to date version.
I’m using PIA by the way, works flawlessly.

cheers,
Jayslow

Same here

Is anyone having trouble with this lately? I’ve been using this near-flawlessly for a couple years now, but I’ve suddenly starting experiencing major problems. There have been a couple times in the past, spread far between, in which my PMS IP changed and had to update that info in my router and re-run the script, but this is unlike anything I’ve seen before. I noticed last night that my PMS IP had changed, so I updated it in my router and ran the various scripts, but nothing worked for the longest time. I tried both versions 5 and 6, and it took repeatedly running each of the provided scripts until one of them randomly worked. Why it worked that time after repeatedly not working is beyond me.

I went to bed last night thinking that the hour or so I’d spent solved my problem, but today, I’m seeing that this isn’t the case. I checked my PMS IP and it remained the same, so I ran the script again. It worked for a few minutes before I lost connection again. After that, I couldn’t get it working again at all. I did a system restore to a month ago (long before I started having these problems) and once again updated my IP in my router and ran the scripts, but nothing is working. I’m at a serious loss for what to do now. Any help would be majorly appreciated.

@shpankey said:
Trying the Mac version posted a couple of pages back on a mid 2012 iMac w/ Sierra 10.12.3. Not working for me. I noticed when I ran the .app file it doesn’t work, but if you open the contents of the app file and run the PlexVPN script (inside PlexVPN.app/Contents/MacOS/ PlexVPN --why on earth would you do this btw? is this what you intend?) it works and outputs the following…

add host 52.214.149.31: gateway 192.168.1.1
add host 52.210.223.97: gateway 192.168.1.1
add host 54.229.174.245: gateway 192.168.1.1
add host 52.17.240.145: gateway 192.168.1.1
add host 54.77.213.127: gateway 192.168.1.1
add host 52.210.15.168: gateway 192.168.1.1

…which is just my Router internal IP (local gateway). So, not sure that is what’s intended (?) or should this be my WAN IP instead?

Right now, even though it runs, it’s not working. Plex is not visible outside of my LAN. Any help appreciated. Someone please start a gofundme account so we can put 4 or 5 brainiacs on this issue full time for us. I’ve got $100 ready to chip in right now. I hate this issue still exists with all these wonky half-baked solutions that require tons of investigation and configuration. Not a knock on these awesome guys providing these free solutions here. Great job and thanks. Just need to get it working.

I’ve got another $20 to put in. Almost the exact situation as @shpankey , down to the same computer, OS, results, etc. Can access Plex fine when PIA is off and no pulse when it’s up.

@XFlak Could this be used for other things like for example an “ARK: Survival Evolved” game server?

@IKROWNI said:
@XFlak Could this be used for other things like for example an “ARK: Survival Evolved” game server?

If it’s got a URL I can ping to gather IPs, then yes very easily. In fact you could replace the URL code in my existing script and it should work for anything in theory. If you try, do report back your results, I’m curious. Good luck.

Holy ■■■■, this actually worked! Thanks man

Just a quick question, how often do i need to run the “VPN Bypass for Plex Media Server - 255.255.255.255” batch?

@phattrance said:
Just a quick question, how often do i need to run the “VPN Bypass for Plex Media Server - 255.255.255.255” batch?

I would probably schedule it to run every hour or so, just in case your VPN drops & reconnects, thus changing the IP.

Okay, so i have read every comment on this thread & i still dont understand s**t.
Im running windows 10 pro & currently, my remote access is “indirect”, due to the PIA connection. When i try & run the v6 batch file, im getting a “Request to unknown timed out” error. Does anyone know the cause of this? I check my IPV4 settings, as well as my forwarded ports. All look okay.

@webby37 @shpankey I wrote the original MacOS script and haven’t used it myself in quite a long time hence why there hasn’t been any development done for a while. I’m happy to take a look at this again over the next few days and try to get something that works for you guys.

I tried to create an app version so that it would just do everything for you in one click but it doesn’t seem to work very well so I may just revert to a script and hope that people know how to use it! The problem is that the Plex IPs can change quite frequently so you’ll also need to set a script to run this script every so often, ideally hourly or even every 30 minutes. I will try to work this all in to one easy solution though.

The script is simply saying to your Mac: If you are connecting to a Plex IP then don’t route the traffic through the VPN, so @shpankey the output you are getting does look as it should but as I said I’ll investigate and let you both know.

XFlak, I’ve been banging my head against a wall on this for weeks. Thank you so much for putting together this solution. I created the scheduled task like you said and it works flawlessly. Amazing. Thanks again!

FYI: I am running Plex over Proxy.sh’s VPN using their Safejumper client. Boom sha lock lock.

Trojan:Win32/Bitrep.B
Found in VPN Bypass for Plex Media Server v6.rar->VPN Bypass for Plex Media Server - 255.255.255.252.exe

Trojan:Win32/Tilken.B!cl
Found in VPN Bypass for Plex Media Server v6.rar->VPN Bypass for Plex Media Server - 255.0.0.0.exe

Downloaded from http://tiny.cc/vpnbypassdirect
Which came from https://xflak40.wordpress.com/apps/#VPN-Bypass-for-Plex-Media-Server

Also, Chrome reports:
Deceptive site ahead
Attackers on www.miniurls.co may trick you into doing something dangerous like installing software or revealing your personal information (for example, passwords, phone numbers, or credit cards).

Where is the source code?

1 Like

Just started using a VPN and when Plex stopped working, Xflak’s script worked flawlessly! Thanks!

(Sidenote: I did not download a RAR, but used the script X posted here. Pure code, no mystery download)