Saturday, 10 January 2015

Tweaking The WiFi For Wii U

We got a Wii U for Christmas, lovely piece of kit (if you like Nintendo, obviously) and one of the nice touches is a big gamepad with its own high resolution screen that you can actually play most of the games on without having to hog the TV to yourself.

This apparently works using some proprietary technology over a standard 802.11an 5.8GHz WiFi link back to the main console (lots more detail/guessing is here in this excellent Digital Foundry article:

This was working really well up until the other afternoon when I was working on my laptop (a Mid 2009 MacBook Pro) and Tom (my son) was trying to play Mario Kart. He kept complaining that the screen on the gamepad kept going "all zig-zaggy", but whenever I closed the lid on my laptop and went to look it played perfectly. I guessed it may be something to do with interference from my laptop, as it also uses 802.11an to connect to our Airport Extreme access point. I confirmed that my iPhone 5S was also causing the same interference and, in some instances, causing the gamepad to completely disconnect from the console!

There's no way to change any of the settings for the gamepad on the Wii U. I've no idea if it even scans the local spectrum to choose what channel to use or just plumps for the same one all the time as it's not visible with a normal WiFi network scanner (I'm sure a proper radio spectrum radio analyser would be able to see it, though, and I may borrow one from work next week). My only option was to try and change the settings on the access point to alleviate the problem.

First off, however, I moved the access point. It was initially right next to the Wii U and this could easily have been affecting the Wii U's operation. I've managed to put about 18" between them now, but space is limited around my TV cabinet. Next, I delved into the radio settings on the Airport Extreme. At some point in the past I'd had some issues with neighbours running aggressive wireless networks that caused drop outs for me and I'd manually pegged all my radio settings. This, of course, gives the AP no opportunity to reassess the state of the radio spectrum and change its channels or the protocols used. I changed the 2.4GHz and 5GHz channels back to "automatic" and also changed the radio mode back from "802.11a/n - 802.11b/g" to "802.11a/n - 802.11b/g/n (Automatic)". Top tip: if you have an Airport Extreme, doing alt-click on the Radio Mode button gives you a lot more options for how you can run the radios in your AP. You shouldn't need to, but it's there if necessary.

(I must admit to not fully understanding these settings and need to have a chat with the guys at work who look after our wireless to get up to speed. I believe 802.11n denotes use of MIMO for higher speeds, and 802.11a means it uses 5.8GHz, allowing up to 300Mb/s. 802.11b/g are the older 2.4GHz modes that allowed up to 54Mb/s speeds but I'm not sure what 802.11b/g/n entails)

The only 802.11b/g devices I have in the house now are the Wii U (for it's Internet connection; it has no wired interface), our 3DS handhelds and a TP-Link wireless extender for the laser printer. Everything else (TV, PS3, WDTV, amplifier and PVR) is connected to the gigabit wired network.

Anyways, the 2.4GHz radio has now moved itself to channel 1 and the 5.8GHz is happily up on channel 100 with no interference from the neighbours. I've tried hammering the wireless (doing a Time Machine backup over the 5.8GHz is always good for that) and playing Mario Kart with no ill effects, so it looks like it's sorted now.

I'm sure this will all break horribly again at some point in the future, but that's just the joy of (home) IT...

Sunday, 4 January 2015

Of Netflix, VPNs and "Piracy"...

If you're a Netflix subscriber (or maybe even if you're not; this may be one reason why you don't subscribe) you're probably aware that the TV shows and movies available through their streaming service vary significantly from territory to territory. A lot of the big name TV shows appear on the North American service before they're available in Europe (and some considerable time before the Antipodes gets them, often up to six months). There are technological ways around this, some of which Netflix have started blocking in earnest this week. I'm going to talk about how this state of affairs came to be and try to offer an opinion of the legal aspects. Standard disclaimers apply: IANAL and I'm not going to get into a right vs. wrong, information wants to be free argument here.

Licensing and distribution deals done between Netflix and the content providers (the movie and TV studios) form part of the trickle-down of content from provider to consumer that used to be simply cinema->home video->TV for movies or TV->home video for TV. We've got more ways to consume visual media than ever before today and the media companies want to maximise the amount of money they can make from each vector, be that cinema, pay per view (there's still a lot of money in hotel and airline TV), subscription TV channels (HBO being the obvious example), digital rental and purchase (e.g. iTunes), streaming services (such as Netflix and Amazon), public broadcast TV and physical media sales such as DVD and Bluray. The media companies stage the release of content to each "tier" so they can generate as much revenue as possible. If you, as a consumer, are desperate enough to want to watch the new episode of Game of Thrones you'll pony up the cash and get an HBO or Sky Atlantic subscription. If not (or if you're somewhere where neither of these options is viable) you'll have to wait for to be able to stream it or buy the DVD boxed set. There's a also market forces at work around the world; some areas are willing to pay a higher price for content than others, so a media company may want to start physical sales of a popular show or movie in the areas where the market will sustain a higher ticket before it sells to cheaper areas. (This is the main reason we still see region locking of physical video media such as DVD and Bluray and video games).

The advent of high-quality, realiable, streaming video over The Internet (as with so many other things accessible over that medium, for good or bad) knocked the traditional distribution models out of whack. The Internet wants to be stateless, it doesn't care what country you live and, despite what CSI: Blackpool may want you to believe, it's actually quite difficult to pin down someone's physical location from an IP address. Once a show has finished airing on it's primary medium (for the sake of argument: a subscription cable channel like HBO) a media company will usually want to sell it on to foreign markets (again, for argument's sake, let say Sky). Sky funds it's purchases of these shows not only through it's subscription fees, but also through the advertising revenues from selling slots in those shows (that likely have a lot of viewers). Sky won't be happy if the show they paid a lot of money for is also available to watch (with no adverts, always preferable for most viewers) online from some subscription service. So, the media companies stage their releases and companies like Netflix have to try and geo-block their content, providing different libraries in different territories. This way Netflix subscribers in the UK can't watch that show Sky paid a lot of money for until Sky has finished broadcasting it and had all those adverts squirted into eyeballs.

Now, back to my bit about CSI: Blackpool and IP addresses: Netflix currently tries to restrict what you can access, as a subscriber, by guessing what country you're in based on your IP address and steering you to a particular content library. That library's content is based on the complex deals they have in place with the different distributors and that staged release system I talked about above. The amount of money Netflix pays the media companies to provide access to a show in a given territory is often based on the number of subscribers they have in that territory (although Netflix is notoriously secretive about it's viewing figures and everyone in Big Media is traditionally cagey about rights fees). As a Netflix UK subscriber you're part of the UK's headcount when it comes to licensing shows from a media company and your subs go towards funding the shows you can watch while in the UK.

This is where it gets a bit murky. Netflix don't dictate what you can watch based on where you live, but where you are located when you sign in to their service. This is why UK citizens holidaying in the US with their iPad or laptop will suddenly find themselves able to access the US Netflix library. Netflix licensed those shows to be able to be viewed by subscribers in the US, not by US citizens exclusively. A Netflix sub is a Netflix sub is a Netflix sub; there's no obvious distinction between subscriptions (albeit maybe slight variations in price) from one country to another and this leads a lot of people to question why they can't just watch everything Netflix has to offer, across the globe.  Netflix don't have country specific accounts/subscriptions because it's a lot easier to restrict access to their services based on where you are on The Internet than the postal address of your subscription or credit card holder's address, both of which are trivial to spoof.

People figured out pretty quickly that if you were in the UK and somehow managed to appear to have a US IP address you could access all the US content. This is commonly done using a VPN or proxy server (the technical detail of these is beyond the scope of this article, get thee to Wikipedia) that's hosted in the country whose content library you want access to. A number of companies sprang up specialising in selling VPN services for accessing geo-blocked content. Unfortunately for them (and their users) the nature of The Internet's IP addressing system makes it easy to associate a block of addresses with these types of services and block access to your services from them; this is what's started happening this last week and Netflix subscribers around the world are finding their access to the US library blocked. Many people feel this is at the behest of the media companies who negotiate the distribution deals.

Are you breaking the law by using one of these services? Again, it's murky and it varies from country to country. Netflix pays money and signs legal contracts with studios to provide their content for different fees in different territories. The studios produce the content, they own it and they get to decide who consumes it, when, where and how much they charge the distributors (in this case Netflix) to get their piece of the action. By watching a show online that isn't licensed in your region you're certainly making life difficult for Netflix as they're struggling to uphold their end of the licensing deal they made with the media company. If, where you live, it's also illegal to attempt to circumvent digital media protection (such as region coding of games and DVDs) you may also be breaking the law by using a VPN or proxy to side-step Netflix's geo-blocking. Can you say "anti-trust"? Yes, you certainly can, but good luck finding a Judge who shares your point of view.

I argued recently that accessing content that's not legally available in your territory is essentially the same as piracy. Piracy (in this context, not the somewhat scarier "give me all your valuables or I'll shoot your wife and children" type) is usually concerned with downloading digital media you've not paid for. I argue that consuming content that's not been made legally available to you is essentially the same. The consumer is getting something they haven't paid for not because it was available and they made a decision not to pay for it but because it simply isn't available to them at that time or place. And at the end of the day it's the owner of that content who gets to decide the where and when, and reap the subsequent financial benefits of that decision.