answersLogoWhite

0

Need to connect your Apple TV 2 or other devices to the internet using wifi from a hotel that requires a login screen but alas no web browser to provide credentials? You know when you connect to your hotel's wifi network and the first time you try to access a webpage you are redirected to an internal page asking you to present credentials such as a code provided by the front desk or the name the room is registered under and the room number. Once presented and you accept the terms your machine is registered and allowed access to the Internet.

The authentication method is usually very simple such as MAC/IP validation. When you connect to the wifi network your MAC address is fetched from the ARP table and the corresponding IP address that was assigned to you during the DHCP negotiation. When the 1st request for access to an external site hits your gateway a lookup is done to see if the MAC/IP has been authenticated if not then a redirect to the logon page is initiated. Here is where the simple non cryptic URL comes into play. It will usually look something like this:

http://ExampleISP.com/index.adp?MacAddr=XX%3aXX%3aXX%3aXX%3aXX%3aXX&IpAddr=10.10.2.112&continued...

If it does you are in luck!

The construct of the URL string is done based on the IP associated with the NIC originating the request but the fetch comes from an external db and is not directly queried from the PC. In other words the webpage typically does not validate that the PC currently displaying the URL actually has that specific MAC/IP combo it is just assumed. So no MAC spoofing etc. is required

This writeup is not meant to help gain unauthorized access to the Internet or any other resources or to usurp any controls. It is assumed you have legitimate credentials and have been granted the privilege of use from the provider. Check the terms and condition to ensure you are not violating any conditions before proceeding.

Here is what is required to gain access:

  1. Connect your Apple TV to the WiFi network as usual. Go to Settings>General>Network You should see a valid IP address and MAC address (WiFi Address i.e. b8:xx:xx:xx:xx:xx) Keep this info handy
    1. Note: Authentication is usually granted for extended period such as 24hrs so if you have already accessed the internet from the device you may not be presented with the URL again till said time has lapsed so you might have to check your history to obtain.
  2. Connect to the same WiFi network from a device with web browser functionality such as a PC/MAC/IPAD/IPHONE. Once connected open a web browser and select an external site so that you are redirected to the URL requesting credentials. Copy and Paste the URL to a text editor.
    1. For PC go to command line and type ipconfig /all
    2. For MAC go to a terminal session and type ifconfig
    3. IPAD/IPHONE go to Settings>General>About (WiFi Address)
  3. Obtain the MAC and IP address from the device you connected with in step 2.
  4. Now find the pattern in the URL that you copied to your text editor that matches the MAC and IP address you obtained in step 3. Note for the MAC address you will see a "%3a" pattern between 2 characters. This is Hex for the ":" portion of the MAC address and should be left in place instead of typing a ":". If you see a bunch of %3a strings you are probably in the correct place. Replace the two characters that are separated by the %3a with the ones you obtained from your Apple TV in step 1 For example replace the first XX with b8 and so on. There are a total of 6 two character sets in a MAC address that will need to be replaced.

XX%3aXX%3aXX%3aXX%3aXX%3aXX where XX is the replacement

  1. Replace the IP address portion of the URL with the IP address from your Apple TV (step 1)
  2. Copy the modified URL back into the web browser and select enter. This in essence is allowing you to use your PC as a proxy for accepting any terms on behalf of your Apple TV. You will then provide your legitimate credentials and accept the terms and services agreement on behalf your Apple TV. Note: You must ensure your AppleTV is still actively connected to the WiFi network with the IP address in the URL prior to selecting the connect/ok/accept button if not then an error will most likely be returned from the website indicating that MAC/IP combination is not found.

Once you receive the confirmation page that access has been granted that should be it and you will be able to access Netflix etc… from your Apple TV for the duration of the validation period set forth by the provider.

Note: If afterwards you attempt to access an external site from the device utilized in step 2 you will most likely be issued the authentication url once again. This time with the actual devices MAC/IP address you will need to provide the appropriate credentials and accept the terms for it as well.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor

Add your answer:

Earn +20 pts
Q: Why Apple TV does not work in a hotel wi-fi?
Write your answer...
Submit
Still have questions?
magnify glass
imp