How to repair/change the AC adapter socket?

Hi guys!

Recently, my laptop (Compaq Presario CQ50) battery passed away and unfortunately, the day after, the same thing happened to my AC adapter. Actually, the adapter itself works perfectly, except for the socket inside the laptop.

It seems this part is loose and no power can now reach my laptop. I don't care running my laptop only plugged to the wall outlet since I'm using it only in the living room. It's old and the replacement battery is quite expensive (I could not charge the battery without a working ac adapter anyways).

I was wondering if it was possible to buy only the socket and also how to replace it?

Thank you!
 
Back