I was in Beijing a few days ago and in most of the restaurants/cafes I only had to ask the waiter for the wifi password. No id checks required.
Some of the "western" bars even have a vpn running so you can browse facebook when connecting to their wifi.