# PlexConnect between 2 Subnets

**URL:** <https://forums.plex.tv/t/plexconnect-between-2-subnets/59034>\
**Category:** Apps & Creations\
**Created:** [March 2, 2014, 3:23pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034 "2014-03-02T15:23:56Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvalenza](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pvalenza](https://forums.plex.tv/u/pvalenza)\
**Post date:** [March 2, 2014, 3:23pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/1 "2014-03-02T15:23:56Z")

</div>

I managed to have PlexConnect working great when I had one network only. But I live in China and often require a VPN with a US IP address. So I run two networks in my house. The computer I have with PMS is not on the VPN but on the a local Chinese IP address. I have 3 ATV's that run on my VPN network.&nbsp;

&nbsp;

Is it possible to get PlexConnet working on my ATV's if they are on a different subnet with my US IP address VPN?

&nbsp;

I will map it out once again:

&nbsp;

192.168.5.1 is my router without a VPN - Chinese IP

192.168.1.1 is my router with a VPN - US IP

&nbsp;

Apple TV's are wired to my 192.168.1.1 VPN router

My PMS and PlexConnect are on a computer that's on my 192.168.5.1 Chinese IP router

&nbsp;

Anyone have ideas how to set this up? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [March 2, 2014, 3:35pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/2 "2014-03-02T15:35:15Z")

</div>

Yes it is possible but you will need to do the following:

- Manually configure the PMS IP in settings.cfg AND disable GDM auto discovery

This should enable PlexConnect to see your server but you will get issues with missing artwork and playback of media due to PMS getting confused over authentication (due to the separate subnet setup), you can get round this:

- On your PMS (ensure show advanced settings is checked): server \> settings \> network

Make sure you enable allow without authorisation the subnet for your ATV's (in the IP/netmask format)

---

<div class="post-metadata">

**Author:** ![pvalenza](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pvalenza](https://forums.plex.tv/u/pvalenza)\
**Post date:** [March 2, 2014, 11:06pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/3 "2014-03-02T23:06:57Z")

</div>

Thanks for the reply. I am going to try this!&nbsp;

So to verify,

- I enable plexgdm = True to False
- Change my PMS IP to my computer PMS is running (I do not need to change the 32400 port? or should that be 27307, which my UPnP is using instead?)&nbsp;
- And my IP plexconnect will also be my PMS computer correct?
- Change advanced settings in PMS

What about the DNS on my ATV? Because they are on a different network? Is that my PMS IP address as well... same as what I above?

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [March 2, 2014, 11:20pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/4 "2014-03-02T23:20:35Z")

</div>

Change the PMS port in settings.cfg if running a non standard port, ie not 32400.  
  
The IP PlexConnect will be the same as the device that you are running PlexConnect on, but you should not have to change this as PlexConnect should be able to detect its own IP (if it can’t you will see it in the log pretty quickly).  
  
The DNS on your ATV is the PlexConnect IP so it will send all DNS requests through PlexConnect; these will either get passed onto an external DNS server or redirected in the case of the trailers app to PMS.  
  
You may also want to change the 8.8.8.8 DNS master to your ISPs DNS server as 8.8.8.8 is google’s DNS server and may be blocked in China

---

<div class="post-metadata">

**Author:** ![pvalenza](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pvalenza](https://forums.plex.tv/u/pvalenza)\
**Post date:** [March 4, 2014, 1:32am UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/5 "2014-03-04T01:32:09Z")

</div>

I really appreciate your help but I wasn't able to get it working. Just so we are on the same page, I thought I would share some screenshots. Maybe this will help someone else out who is trying a similar setup.

![post-185485-0-42600800-1393892871.png|690x260](upload://uBmnZN6cJ8CeAhvsgoHlcUzUPAZ.png)

![post-185485-0-21581100-1393892875.png|690x420](upload://i1YEGi8eqpi5LkvEnliBjNX4y1Q.png)

![post-185485-0-29905100-1393892873.png|690x359](upload://tsvAZVICldZc9i6rMi19ClAgoo5.png)

![post-185485-0-49362300-1393892882.png|690x179](upload://rrM58gyOiM42powZXhnsGobCzFU.png)

**Here is what the Setting.cfg has in it:**

[PlexConnect]

enable\_plexgdm = False

ip\_pms = 192.168.5.105

port\_pms = 27307

enable\_dnsserver = True

port\_dnsserver = 53

ip\_dnsmaster = 8.8.8.8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(by the way China does not block Google DNS - although I did try my ISP here as well. No go)_

prevent\_atv\_update = True

enable\_plexconnect\_autodetect = False

ip\_plexconnect = 192.168.5.105

hosttointercept = www.icloud.com

port\_webserver = 80

enable\_webserver\_ssl = True

port\_ssl = 443

certfile = ./assets/certificates/trailers.pem

loglevel = Normal

logpath = .

&nbsp;

![post-185485-0-91577200-1393892879.png|690x434](upload://dUw1wLqVp4TjE2zXXRZXD2uoeUX.png)

**Here are the setting on my ATV:**

![post-185485-0-88713800-1393893226.jpg|666x500](upload://jEet4JqX2aVixmw8ItgV94jZW4L.jpg)

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [March 4, 2014, 9:55am UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/6 "2014-03-04T09:55:37Z")

</div>

Can you set log level ‘High’ (note the capital H) on PlexConnect and share the log here?

---

<div class="post-metadata">

**Author:** ![pvalenza](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pvalenza](https://forums.plex.tv/u/pvalenza)\
**Post date:** [March 5, 2014, 3:12pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/7 "2014-03-05T15:12:58Z")

</div>

Strange. I can't get plexconnect to generate a new log. I have followed the instructions [here](https://github.com/iBaa/PlexConnect/wiki/How-to-report-an-issue) as to how to create a log file properly. Considering I have plexconnect set to launch daemons, I restarted my computer. I also used the terminal command&nbsp;sudo launchctl load /Library/LaunchDaemons/com.plex.plexconnect.bash.plist&nbsp;and&nbsp;sudo launchctl unload /Library/LaunchDaemons/com.plex.plexconnect.bash.plist&nbsp;to stop it. Still no new plexconnect.log file has been generated.

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [March 5, 2014, 4:06pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/8 "2014-03-05T16:06:18Z")

</div>

if you unload the plist and start it from the command line what shows in the terminal window?

---

<div class="post-metadata">

**Author:** ![pvalenza](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pvalenza](https://forums.plex.tv/u/pvalenza)\
**Post date:** [March 5, 2014, 10:42pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/9 "2014-03-05T22:42:31Z")

</div>

When I do the unload command in terminal it simply asks for my password and then shows the name of my computer. Same for the load. Just to make sure I was suppose to "delete" the log file and it should generate a new one correct? Not just empty the content from it?

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [March 6, 2014, 9:07am UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/10 "2014-03-06T09:07:24Z")

</div>

Sorry I meant starting it using “sudo ./plexconnect.py” - this should generate output in the terminal window (you then use CTRL+C to shut it down - don’t just shut the terminal)

---

<div class="post-metadata">

**Author:** ![jaydenaphillips](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@jaydenaphillips](https://forums.plex.tv/u/jaydenaphillips)\
**Post date:** [March 6, 2014, 8:08pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/11 "2014-03-06T20:08:40Z")

</div>

You will need a way to route between the subnets.&nbsp; If you are running two separate routers you probably aren't setup for that.

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [March 6, 2014, 11:26pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/12 "2014-03-06T23:26:49Z")

</div>

> You will need a way to route between the subnets. If you are running two separate routers you probably aren't setup for that.

  
Yeah macman64 has probably hit the nail on the head, I had assumed that you had something in place to do this but maybe not.

---

<div class="post-metadata">

**Author:** ![pvalenza](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pvalenza](https://forums.plex.tv/u/pvalenza)\
**Post date:** [March 6, 2014, 11:49pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/13 "2014-03-06T23:49:39Z")

</div>

Curious, what would be the appropriate setup to do this? Is it a peice of hardware? I might be willing to buy something if it’s needed.

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [March 7, 2014, 12:42pm UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/14 "2014-03-07T12:42:00Z")

</div>

The easiest thing might be to put the PMS on the same network as the ATV’s or is this not an option?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 1:27am UTC](https://forums.plex.tv/t/plexconnect-between-2-subnets/59034/15 "2019-12-21T01:27:28Z")

</div>

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