If you are talking about a ‘hotel cam’, the best way is by using a travel router. You have to program the camera for the travel router, then use the travel router to log onto the hotel’s WiFi.
Here is a discussion to look over, including a link on how to connect a Wyze Cam to WiFi with a portal page (that you might find in a hotel):