Is the crib still available? Can your 4 month old stay in a pack n play for a night or so? With my son I put very appealing bedding on for him, truck sheets and he wanted to be a big boy in a big boy bed. When he would go to get out of bed, I told him had to either stay in the bed or he was going back in the crib, those were his options. Big boys stay in their beds, but babies have to be in cribs. He wanted the truck sheets in the bed so bad he only tried a couple of times. And each time he did, I put him in the crib, which of course made him upset. I stayed with him and talked to him calmly, then once he was calm I asked him what he wanted, the crib or the big boy bed... he chose the big boy bed.
I threatened the crib a couple more times when he started to climb out, but that was it. Forgot to mention I have a video monitor so I was watching like a hawk. Now he'll call me if he needs something or just to call sometimes
, even in the middle of the night, but he doesn't get out of bed **knock on wood**! Even at nap time, which mine is barely napping anymore. He'll sit in his bed and read books.
I hope that helps!