![]() If exist "%userprofile%\AppData\Local\Plex Media Server\PermittedPlexIPs2.txt" del "%userprofile%\AppData\Local\Plex Media Server\PermittedPlexIPs2.txt">nul Route -p add %PlexIP% mask 255.255.255.255 %gateway%Įcho %PlexIP% >"%userprofile%\AppData\Local\Plex Media Server\PermittedPlexIPs.txt"Įcho Removing routed IPs no longer used by IF NOT ERRORLEVEL 1 (echo IP already routed, skipping.) & (goto:EOF)Įcho route -p add %PlexIP% mask 255.255.255.255 %gateway% If not exist "%userprofile%\AppData\Local\Plex Media Server\PermittedPlexIPs.txt" goto:skipcheckįindstr /I /C:"%PlexIP%" "%userprofile%\AppData\Local\Plex Media Server\PermittedPlexIPs.txt">nul Ipconfig|findstr /I /C:"Default Gateway"|findstr /I /C:"1" >"%temp%\gateway.txt"įindstr /I /C:" " "%temp%\temp.txt" >"%temp%\.txt"įor /F "tokens=*" %%A in (.txt) do call :list %%A Set PATH=%SystemRoot%\system32 %SystemRoot%\system32\wbem %SystemRoot% Paste the batch script written by XFlak for allowing Plex to map its port back without the VPN by correcting the routes for Plex off If you can play videos remotely at greater than 2.0 Mbps, then don't worry about whatever the Plex Web interface says about remote access working or not.Remote Access Plex Media Server on Windows Behind VPNĪll credit for this script goes to XFlak ( his site) on the Plex forum. The original post by XFlak is here and may have a newer version of the Windows batch script than here.Ĭreate an empty file somewhere on your machine, I put it in C:\HTPCGuides\PlexVPN.bat If you forget to disable Plex Relay, you might have a middle-ground where it appears to work, but all the videos get converted to 1.0 Mbps quality (2.0 Mbps for Plex Pass) so that they can be proxied through a Plex Relay server. Since you disabled Plex Relay, it will either play, or it won't. Test remote access from outside your LAN by trying to stream something.Enable remote access in Plex Media Server settings, but don't test it from your LAN.Disable remote access in Plex Media Server settings.Disable Plex Relay in Plex Media Server settings.Double-check your port forwarding rules.This can make the router slower, depending on the router's CPU power, so you might want to give that some consideration, especially if you're a gamer and latency matters to you. You might have to disable NAT acceleration (aka NAT Boost, Turbo NAT, etc) to get NAT reflection working. Enable NAT reflection in your router if you can.You can also try enabling remote access from inside your network by using the locally hosted Plex Web interface at and then test if remote access is working by trying to access from a device outside your network, like your mobile phone on 4G/5G cellular internet, or via a VPN.Įither way, the remote access detection is pretty fucky. Try enabling NAT reflection and see if that helps. The router will drop the request because it doesn't make sense.Your router can notice that the request is for its own public IP, and the port matches a port forwarding rule, so it reroutes the request to the local IP address matching the port forwarding rule.Get stuck at the router for lack of correct port forwarding rule.The request could route out of your network, to your ISP, to the public Internet, then back to your router, then.Trying to access something inside your network by your router's public IP could go a few different ways. That domain will resolve to your IP address. From my understanding, if you try to detect if it's working from the Plex Web interface, it will try to hit the public DNS name of the Plex server, which is basically your IP address as a subdomain of a special plex.direct domain. The way that Plex detects if remote access is working is kind of fucky. Please go to the relevant subreddits and support forums, for example: Build help and build shares posts go in their respective megathreads No referral / affiliate links, personal voting / campaigning / funding, or selling posts Welcome to /r/Plex, a subreddit dedicated to Plex, the media server/client solution for enjoying your media! Plex Community Discord Rules Latest Regular Threads: No Stupid Q&A: Tool Tuesday: Build Help: Share Your Build: Submit Troubleshooting Post Files not showing up correctly?
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |