Missed Connection

You missed a connecting flight. Who must get you to your destination, who pays for the hotel, and what changes when you booked separate tickets.