Only hotels holding a specific Public Security Bureau foreign-guest license may register foreign passports; many budget inns and short-term rentals lack that license.
Book only hotels flagged as "foreigner-friendly" on Trip.com or Booking.com, or stick to internationally branded / 4-star-and-up hotels which always hold the required license.

