PlexConnect and Unblock-US

HI

I'm having some issues as well using unblock-us,

Running:

- Two ATV3 one running version 5.2.1 and the other one version 5.2.3

- Windows WHS 2011 / Service Pack 1 / static IP / running Plex Media server and PlexConnect

- Python 2.7.5 Windows X86-64 Installer

- PlexConnect Github's files

- Plex Media Server Version 0.9.7.28.33

Settings:

-Apple TV: Changed the dns server to the IP on the Windows WHS server running Plexconnect and Plex Media Server.

Windows Firewall:  Already gave permissions to phyton on Windows Firewall, since I didn't have results I just turned Windows Firewall off until I get things working.

-settings.cfg:

[PlexConnect]
port_pms = 32400
enable_plexgdm = True
ip_dnsmaster = 208.122.23.23
ip_webserver = 0.0.0.0
loglevel = Normal
enable_dnsserver = True
ip_pms = 192.168.178.10
port_webserver = 80

- Phyton info:

13:54:21 PlexConnect: started: 13:54:21
13:54:21 PlexConnect: ***
13:54:21 PlexConnect: PlexConnect
13:54:21 PlexConnect: Press ENTER to shut down.
13:54:21 PlexConnect: ***
13:54:21 PlexConnect: IP_self: 192.168.0.100
13:54:21 PlexConnect: started: 13:54:21
13:54:22 DNSServer: started: 13:54:22
13:54:22 DNSServer: ***
13:54:22 DNSServer: Starting up.
13:54:22 DNSServer: intercept trailers.apple.com: 192.168.0.100
13:54:22 DNSServer: forward other to higher level DNS: 208.122.23.23
13:54:22 DNSServer: ***
13:54:22 WebServer: started: 13:54:22
13:54:22 WebServer: Failed to connect to HTTP on 0.0.0.0 port 80: [Errno 10013]
An attempt was made to access a socket in a way forbidden by its access permissi
ons

Thanks a lot in advance

Alex

WHS has another WebSever running. You got to free port 80. A lot of thread about this issue... as well as a nice explanation in the wiki.

WHS has another WebSever running. You got to free port 80. A lot of thread about this issue... as well as a nice explanation in the wiki.

Thanks Baa for the reply, I did some google search on freeing port 80 with different results, I'm afraid I may end up doing the wrong thing. By freeing port 80 you mean opening IIS and changing port 80 for something else? Can you please post one of those links so I could fallow the steps?  Thanks a lot!

PlexConnect wiki: Link in the signature -> Install guides

Use the search (Windows Home Server): eg http://forums.plexapp.com/index.php/topic/70252-how-to-make-it-work-on-windows-home-server/?hl=%2Bwindows+%2Bhome+%2Bserver

I don't know anything else, no Windows at home...

Thanks a lot Baa, it works!  :D

If I'm understanding the setup correctly, this means unblock-us will only work while plexconnect is running? I use my appleTV independently all the time and doubt I'll want to leave my PC on with plexconnect running all the time just to access region locked content.

Don't want to sound unappreciative, this tech is awesome. Just trying to make the best use of it.

If I'm understanding the setup correctly, this means unblock-us will only work while plexconnect is running? I use my appleTV independently all the time and doubt I'll want to leave my PC on with plexconnect running all the time just to access region locked content.

Don't want to sound unappreciative, this tech is awesome. Just trying to make the best use of it.

Yes that is correct due to the architecture.

Most users seem to have their PMS machine on all the time so it is not an issue.

Otherwise you will have to switch the DNS on the ATV between the two.

If you have a jailbroken ATV it is possible, although not supported, to run PlexConnect on that. Once we have daemon code in the application it could be set to start up when the ATV boots.

Have to say that I've spent a couple of days getting my installation fully operational.

Here is what I was trying to achieve:

1. I use Unblock-US to watch netflix, Quello and Huluplus on my ATV

2. I use PlexConnect to stream movies from my Server to the ATV

3. I use AirPlay to stream my some digital content not available on ATV as embedded app. Like History Channel, ABC and CBS.

My initial set up consisted of just simply streaming the movies from my ATV, not quite challenging at all (thanks top the quite amazing posts in this forum) despite the new HTPPS restrictions.

So in order to have Unblock-US and ATV working it was just matter of changing the Google DNS server for the Unblock-us ones. That worked seamlessly, no problems at all.

However, the challenge came when I was trying to use Airplay on My Ipad to stream content to the Apple TV. This seemed to had some issues. Erratic behaviour with failures most of the times. Taking a very long time to load a video.

After making some trial and error test, I found that the problem seemed to be the Local domain name resolution with PlexConnect. When using PlexConnect, I had huge trouble streaming from my IPAD using AirPlay. However, when switching to my router as DNS, the problem went away.

So, after doing some research, I decided to work on a solution to have my Home entertainment system fully operational.

First try was to use my Virtual Plex Machine (Running on a UBUNTU Server 12.04 LTS) as a BIND DNS server. Spent several hours trying to get a working configuration without any success (I'm a unix rookie).

Finally I discovered (Thanks god) that using my DD-WRT router with dnsmasq, could be a potential solution.

DNSMaq on the router allows you to define name servers based on the domain top name or per subdomain , so enabling the DNSMaq on my router and putting the below configuration solved my issue:

192.168.1.10 is my PlexConnect server

208.122.23.22 is Unblock-us DNS server

127.0.0.1 I use this address to block ATV updates (As is done on PlexConnect)

Additional DNSMaq options:

local=/lan/
cache-size=50000
expand-hosts
no-negcache
domain-needed
all-servers
address=/trailers.apple.com/192.168.1.10
address=/plexconnect/192.168.1.10
address=/mesu.apple.com/127.0.0.1
address=/appldnld.apple.com/127.0.0.1
address=/appldnld.apple.com.edgesuite.net/127.0.0.1
server=/apple.com/208.122.23.22
server=/mtv.com/mtvnservices.com/fwmrm.net/google-analytics.com/imrworldwide.com/demdex.net/scorecardresearch.com/quantserve.com/doubleclick.net/chartbeat.com/208.122.23.22
server=/fox.com/theplatform.com/akamaihd.net/chartbeat.com/208.122.23.22
server=/tunlr.net/208.122.23.22
server=/pandora.com/208.122.23.22
server=/hulu.com/huluedgecast.com/akamai.net/mzstatic.com/huluim.com/akamaiedge.net/edgesuite.net/edgekey.net/srip.net/208.122.23.22
server=/cbs.com/208.122.23.22
server=/netflix.com/208.122.23.22
server=/abc.com/go.com/208.122.23.22
server=/tv.com/208.122.23.22
server=/pbs.com/208.122.23.22
server=/vevo.com/fwmrm.net/208.122.23.22
server=/thewb.com/208.122.23.22
server=/cwtv.com/208.122.23.22
server=/mylifetime.com/scorecardresearch.com/doubleclick.net/rubiconproject.com/cpxinteractive.com/adnxs.com/brightcove.com/cpxadroit.com/atdmt.com/serving-sys.com/208.122.23.22
server=/crackle.com/208.122.23.22
server=/last.fm/208.122.23.22
server=/turntable.fm/208.122.23.22
server=/mog.com/208.122.23.22
server=/iheart.com/208.122.23.22
 
PlexConnect DNS server is still enabled, just in case I need to monitor DNS requests not working from my ATV.
 
No need to change DNS server configuration on any device at home! The router will do my Job.
 
Hope this helps someone else with the same problem.
 
EDIT:
I didn't want to use Unblock-us as the main DNS server for my router due to:
 
1. Performance
2. Security, I do not want the non Media related stuff (like Banks, email) to be controlled by a 3rd party service. Easy to Hack me with DNS spoofing. So I just want the selected Domain to be controlled by them.

>>3. I use AirPlay to stream my some digital content not available on ATV as embedded app. Like History Channel, ABC and CBS.

There are plugins available for PMS...

Yes Baa thanks, Not all the applications I use in my Ipad are available as plugins.

Hi, I have an issue.

Actually I have two Apple TVs, I want Unblock-us just on one of them and the other one run the Google DNS, how can I do?


Thanks guys.

Hi, I have an issue.
Actually I have two Apple TVs, I want Unblock-us just on one of them and the other one run the Google DNS, how can I do?

Thanks guys.


Only way would be having plexconnect on two machines one for each ATV.

Is there are reason you can run unblock on both? The Google DNS is also based in the USA as well so your performance should be about the same for other apps (it just won't fool eg Netflix into providing a different service).

Let me explain, I live in a country with Spanish language, my wife and I want to see Netflix USA but my kids want to see local Spanish Netflix, both Apple TV have to run Plexconnect but if I change the master DNS all devices changed programming. Thanks

Are they ATV2 or ATV3 devices?

ATV3 both

ATV3 both

That is a shame as it could have allowed for more flexible options.
You are a bit of an edge case but I think your two options are:

- run two instances of PlexConnect as drewbie said, with each ATV pointed to the specifically configured one
- run one PlexConnect, disabling PlexConnect's DNS server. You then use your own DNS server or Linux router to do redirection for Trailers.com and Netflix redirection (with Netflix redirection being different for each Apple TV)

Thanks, the second options looks better, I’ll try to figured out

Hi Guys 

Thanks for all your work here but I'm still not having luck getting the DNS changed

Ive changed the "ipdnsmaster " in the settings.cfg file with text edit and saved it back in place and checked it.

but when i go over to the Settings.py file its still set to 8.8.8.8.

how can I make it refresh or whatever it needs to do 

Thanks in advance and if you havent already guessed Im a noob at this sort of thing 

Settings.py brings the default values - in case there is no Settings.cfg file.

On a PlexConnect restart, the information from Settings.cfg will be used - you should see that in the logs.