Posts Tagged ‘internet’

Accessing Free Guangzhou Airport Wi-Fi on MacBook Pro

Saturday, December 2nd, 2017

Guangzhou airport has a crazy way of providing free wifi. If you have a Chinese phone you can receive a login account via text, but if you don’t have a Chinese number, then you have to go to a physical ticket machine, scan your passport, and quickly jot down (or photograph) the code that flashes on the screen for 15 seconds.

Once you have this code, you have to click “Ticket Cert” on the login page and enter the info.

This worked fine for me on my iPhone.

But when I tried to follow the same steps on my laptop, the “Ticket Cert” option did not appear on my browser login prompt. I saw a slightly different page that only had the SMS option (and a bunch of half-loaded CSS and javascript errors).

I tried many things including spoofing the UserAgent on my browser. Nothing seemed to work.

Finally, I changed the MAC address on my laptop to match my already-online iphone’s

ifconfig en0 ether [iphone's "Wi-Fi Address"]

This worked.

PS: So far, I have not managed to get any sort of vpn, proxy or ssh tunnelling to work.

Linksys router + Motorola Surfboard + Time Warner needs reset after power outage

Saturday, July 26th, 2014

Our vacuum keeps blowing the fuse in our apartment and each time the internet goes down. I haven’t tracked down why this happens, but here’s my solution after a couple times.

  1. Open (router’s configuration page) and note down MAC Address currently cloning
  2. Unplug power to router and modem and wait 15 seconds
  3. Plug power to router and modem in again
  4. Unplug ethernet from the linksys router
  5. Connect original computer (with MAC address above) directly to router using ethernet, check that some page loads
  6. Restore Linksys to factory settings using little button on back
  7. Connect to restored wireless router (it should have name linksys)
  8. Open and enable MAC address cloning with previously noted address
  9. Open and restore wireless name exactly
  10. Reconnect to router wireless router using new name
  11. Open and set up password again exactly: choose WEP, then type password as Key 1
  12. Once again reconnect to wireless router using new name, your machine should remember that it used to remember this password if it’s the same

Share internet (via wifi Airport) applescript

Sunday, July 17th, 2011

Here’s an applescript we’ve been using at home to share the ethernet internet connection between our two laptops. The computer with the ethernet cord plugged in runs this script, then the other computer can connect to the wireless network of that computer’s name and share its internet connection.

tell application "System Preferences"
end tell

tell application "System Events"
	tell process "System Preferences"
		click menu item "Sharing" of menu "View" of menu bar 1
		delay 2
		tell window "Sharing"
			if value of checkbox 1 of row 11 of table 1 of scroll area 1 of group 1 is 1 then
				click checkbox 1 of row 11 of table 1 of scroll area 1 of group 1
				click checkbox 1 of row 11 of table 1 of scroll area 1 of group 1
			end if
			click checkbox 1 of row 11 of table 1 of scroll area 1 of group 1
			delay 1
			if (exists sheet 1) then
				if (exists button "Turn AirPort On" of sheet 1) then
					click button "Turn AirPort On" of sheet 1
					delay 1
				end if
				click button "Start" of sheet 1
			end if
		end tell
	end tell
	tell application "System Preferences" to quit
end tell

Downloads (zip) Here’s a version wrapped into an app with a nice little icon so you can put it on your dock.