Kicking all night long

Kelly
Last two nights my baby boy started kicking me so hard I couldn't sleep between 2:30 and 4:30am. How can I get him to settle down? I tossed and turned, rested my hand where he kicked, and drank warm water. Nothing worked. I don't want to deal with this insomnia yet!! Almost 24 weeks. Thanks for any advice :)