If you seriously interested about the question you just asked, take your time, watch those videos.
Hukou covered in one of them, among visa policy if my memory is correct.
Reply on news.ycombinator.com