Connect Synology with Plex on Public IP

Server Version#: 1.18.2.2029
Synology Model: ds218+
Mac IP: 142.xx.xx.xx
Server IP: 142.xx.xx.xx
I can’t find the server to connect with Plex. I am aware that I am probably on a WAN address. I know that with tunneling will work. But I am not sure how to do it. Could someone help me, I have tried everything. Thanks
Plex Media Server.log (324.2 KB)

To start, you may want to remove your public IP addresses from your post; leaving them on a public forum could lead to unwanted connection attempts.

Assuming you have no way to place both devices on the same local network/subnet, you can use SSH tunneling to remotely access Plex Media Server. This is the most common example on I’ve seen on the forums (thanks @ChuckPa):

# ssh -L 8888:127.0.0.1:32400 [ip address of server]

This would need to be run on your Mac. Then, to access the server via it’s web interface, open your browser on the Mac and navigate to https://127.0.0.1:8888/web.

Thanks for the reply @pshanew I have both of my devices connected to the same ethernet switcher if that makes sense. However supposedly I can’t configure Plex using a public ip like the one I have 142.xx.xx.xx, or is there a way I could? Also, I copy on terminal this: # ssh -L 8888:127.0.0.1:32400 (ip of server)? or I should remove the 127.0.0 ?

I have read several post that @ChuckPa has answered, does my server.log helped on anything?

You’d enter the command exactly as above, replacing [ip address of server] with the actual IP address of your server. I had a quick look at your log and didn’t see much of interest. It appears to be mostly initialization information.

It’s possible I’ve misunderstood the problem you’re experiencing. My assumption was that you are having issues accessing the server via its web interface. If that’s not correct, can you please restate your issue(s) in as much detail as possible?

@pshanew So I pasted the command exactly as you did on terminal and nothing happened. Then I removed the # in the beginning and the brackets on my ip, like this: ssh -L 8888:127.0.0.1:32400 142.xx.xx.xx
Then it showed me this: shh: connect to host 142.xx.xx.xx port 22: Connection refused

Yes my problem is that I can’t set up for the first time my plex server because it does not find the server on my Synology. Because it is on a public IP. So it does not find a server to claim.

That “Connection refused” response means that the SSH server isn’t enabled on your NAS. To enable it, you’ll need to follow the directions found in step 1 of this Synology support document:
https://www.synology.com/en-global/knowledgebase/DSM/tutorial/General_Setup/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet

Don’t worry about the rest of the steps, they are for logging in with root access. If the command is successful, it will ask for your login credentials.

@pshanew Ok so apparently now I can get in on my terminal. If I run this command: ssh -L 8888:127.0.0.1:32400 admin@142.xx.xx.xx . And then put my password for my admin profile. It lets me in on the terminal. However I can’t access the link https://127.0.0.1:8888/web

Again thanks for your replies and for helping me :slight_smile:

What error are you seeing when you try to browse to that page? Is it a certificate error? If so, just proceed anyway. Or, try accessing insecurely using:
http://127.0.0.1:8888/web

Be sure you’re doing this on the same system on which you ran the SSH command. If that doesn’t work I’m not sure what else to suggest, other than ensuring that Plex Media Server is running on the NAS.

@pshanew Thank you so much!! You helped me a lot! On the last step I checked this article : https://support.plex.tv/articles/200288666-opening-plex-web-app/?_ga=2.266940750.1757697844.1573815874-11949146.1573815874 and the commands worked.

No problem, glad you got it working.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.