Ask your friends and family if they live in that city, or if they know anyone in that city. Use friendship apps like Passionfruit to find people in the locality. Check out local events and get involved in your community. Get to know your neighbors, bring them a fruit basket or baked goods to help you break the ice. Find common interests and talk to people with whom you are traveling. Explore local businesses and small businesses for a bite or a hot cup of coffee.