PlexConnect DNS Issues--Out of Range

My original problem was that I couldn't get plexconnect to see my plex media server, but i uninstalled it and reinstalled it and for some reason, now when i start up plexconnect.py it is generating an IP_Self IP address that is out of my IP range. I am using an Airport Extreme and the ranges should be 10.0.1.xxx but when I run plexconnect.py, it is giving me an IP address of 10.196.1.6, which isn't working. How can I fix this? 

 

sudo "/Applications/PlexConnect-master/PlexConnect.py"

20:08:34 PILBackgrounds: No PIL/Pillow installation found.

20:08:34 PlexConnect: ***

20:08:34 PlexConnect: PlexConnect

20:08:34 PlexConnect: Press CTRL-C to shut down.

20:08:34 PlexConnect: ***

20:08:34 PlexConnect: started: 20:08:34

20:08:34 PlexConnect: Version: 0.4-dev

20:08:34 PlexConnect: Python: 2.7.5 (default, Mar  9 2014, 22:15:05) 

[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]

20:08:34 PlexConnect: Host OS: darwin

20:08:34 PlexConnect: PILBackgrounds: Is PIL installed? False

20:08:34 PlexConnect: IP_self: 10.196.1.6

20:08:34 DNSServer: started: 20:08:34

20:08:34 DNSServer: ***

20:08:34 DNSServer: DNSServer: Serving DNS on 10.196.1.6 port 53.

20:08:34 DNSServer: intercept: ['trailers.apple.com'] => 10.196.1.6

20:08:34 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1

20:08:34 DNSServer: forward other to higher level DNS: 8.8.8.8

20:08:34 DNSServer: ***

20:08:34 WebServer: started: 20:08:34

20:08:34 WebServer: started: 20:08:34

20:09:04 WebServer: ***

20:09:04 WebServer: WebServer: Serving HTTP on 10.196.1.6 port 80.

20:09:04 WebServer: ***

20:09:04 WebServer: ***

20:09:04 WebServer: WebServer: Serving HTTPS on 10.196.1.6 port 443.

20:09:04 WebServer: ***

 

What’s in your settings.cfg file?

[PlexConnect]
enable_plexgdm = True
ip_pms = 192.168.178.10
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.8.8
prevent_atv_update = True
enable_plexconnect_autodetect = True
ip_plexconnect = 0.0.0.0
hosttointercept = trailers.apple.com
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
loglevel = Normal
logpath = .

Ok, if you do an ipcofig in the machine (sorry I’m more a windows person so not sure the command in OS X, but I think you can also see it under about this Mac)

i have a static ip set for the machine as 10.0.1.2

Ok, if you do an ipcofig in the machine (sorry I'm more a windows person so not sure the command in OS X, but I think you can also see it under about this Mac)

It'd be ifconfig on a mac to get the network info - that one always gets me when I switch between my mac and windows machines.

As for the problem, I'm going to take a guess it's due to this line in the Settings.cfg:

ip_pms = 192.168.178.10

That's using the default address that PlexConnect puts in the Settings file. You'd want to set that to be the machine that your Plex Media Server is running on, which I'm going to guess might be the same mac you are running PlexConnect on? If so then edit Settings.cfg and change the value from 192.168.178.10 to 10.0.1.2. Shutdown PlexConnect and then start it back up, see what it reports back in the logs. If the Plex Media Server isn't on your Mac, change ip_pms to the IP of whatever Plex Media Server is running on.

Ok, I tried that, but it keeps changing the IP address (see below, now it is 10.108.1.6) and when i go to add the certificate, it is just stuck at adding profile, which makes me believe that it's not actually "hitting" the DNS server I specified on the appletv:

sudo "/Applications/PlexConnect-master/PlexConnect.py"

Password:

20:52:21 PILBackgrounds: No PIL/Pillow installation found.

20:52:21 PlexConnect: ***

20:52:21 PlexConnect: PlexConnect

20:52:21 PlexConnect: Press CTRL-C to shut down.

20:52:21 PlexConnect: ***

20:52:21 PlexConnect: started: 20:52:21

20:52:21 PlexConnect: Version: 0.4-dev

20:52:21 PlexConnect: Python: 2.7.5 (default, Mar  9 2014, 22:15:05) 

[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]

20:52:21 PlexConnect: Host OS: darwin

20:52:21 PlexConnect: PILBackgrounds: Is PIL installed? False

20:52:21 PlexConnect: IP_self: 10.108.1.6

20:52:21 DNSServer: started: 20:52:21

20:52:21 DNSServer: ***

20:52:21 DNSServer: DNSServer: Serving DNS on 10.108.1.6 port 53.

20:52:21 DNSServer: intercept: ['trailers.apple.com'] => 10.108.1.6

20:52:21 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1

20:52:21 DNSServer: forward other to higher level DNS: 8.8.8.8

20:52:21 DNSServer: ***

20:52:21 WebServer: started: 20:52:21

20:52:22 WebServer: started: 20:52:22

20:52:22 WebServer: ***

20:52:22 WebServer: ***

20:52:22 WebServer: WebServer: Serving HTTPS on 10.108.1.6 port 443.

20:52:22 WebServer: WebServer: Serving HTTP on 10.108.1.6 port 80.

20:52:22 WebServer: ***

20:52:22 WebServer: ***

It'd be ifconfig on a mac to get the network info - that one always gets me when I switch between my mac and windows machines.

As for the problem, I'm going to take a guess it's due to this line in the Settings.cfg:

ip_pms = 192.168.178.10
That's using the default address that PlexConnect puts in the Settings file. You'd want to set that to be the machine that your Plex Media Server is running on, which I'm going to guess might be the same mac you are running PlexConnect on? If so then edit Settings.cfg and change the value from 192.168.178.10 to 10.0.1.2. Shutdown PlexConnect and then start it back up, see what it reports back in the logs. If the Plex Media Server isn't on your Mac, change ip_pms to the IP of whatever Plex Media Server is running on.

I knew it was close but could not remember the exact difference.

Because plexgdm is true that settings is not used, and does not explain why ip self is returned out of range, I'm guessing something is setting a different up adrress (maybe VMware or ither virtual system or VPN etc)

Something is causing your machine to have different ip addresses do you have multiple network cards or a VPN etc

Ahh! ok that worked! I turned off my VPN and it is working perfectly now. So how can I use it with my VPN on?

if you define ip_plexconnect = the actual ip of your Mac and also turn enable_plexgdm = False (note the capital F). And then set the ip_pms to the ip of the machine hosting plex media server.


As long as your VPN still allows port 80, 443 and 53 to the base IP address then you should be able to use both your VPN and Plexconnect.

Quick question for you, have you reserved IP_Addresses in your Modem (for example, I use an Apple Airport) for your devices?

Ahh! ok that worked! I turned off my VPN and it is working perfectly now. So how can I use it with my VPN on?

Maybe I can help you here.

I also have a VPN that is set to start when the mac boots up. I could not get PlexConnect or OpenPlex to work with the VPN until I modified the Settings.cfg file. Note that 192.168.1.100 is my static IP. 

Here is what mine looks like:

[PlexConnect]

enable_plexgdm = False
ip_pms = 192.168.1.100
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.8.8
prevent_atv_update = True
enable_plexconnect_autodetect = False
ip_plexconnect = 192.168.1.100
hosttointercept = trailers.apple.com
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
loglevel = Normal
logpath = .

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