Post

Solving Hotel MAC & IP Address Binding on Mac OS X

Today I went on a business trip to Yinchuan, Ningxia, and didn’t get to check into the hotel until late at night. When I asked the front desk how to get online, the answer was that I could only use their crappy Hasee computer they provided, not my own laptop. The reason: their “IP address” was bound to their “Marx address” (this is how the front desk staff put it — we can’t expect everyone to be familiar with computer acronyms and pronounce them correctly in English, nor can we expect them to follow the SARFT’s requirements to ban acronyms and say “Internet Protocol address bound to Media Access Control address.” Combining MAC with the name of the great mentor counts as a creative application of Marxism).

Once I got to the room, I couldn’t stand the shared computer. Its low specs were tolerable — I use cloud storage, so my data wasn’t affected. The problem was that it was loaded with nothing but entertainment software: QQ, 360, Thunder, PPStream, the Chinese-favorite IE6, etc. Not a single legitimate piece of productivity software — couldn’t even open PDF or DOCX files. I was so fed up that I considered ditching the hotel arranged by the training center and finding my own place. But then I thought, it’s just MAC address binding, right? Teachers, classmates — such cheap tricks won’t stop the friendship between Shanghai and Yinchuan. Do it yourself, and solve the problem with code.

Create a new file with vim, type:

#!/bin/sh

#Jason HE Change MAC address temporarily

This post is licensed under CC BY 4.0 by the author.