Is my Charger Port Broken?

I'm running a Lenovo Windows 10 Laptop and yesterday my charger would connect to the computer just fine, but now whenever I plug it in, it won't register it and won't at all unless I push on it, is this my charger port breaking or is it the charger?

I've had a problem just like this with my ipad then it just stopped charging.

Probably a broken port, from sideways yanking when you trip on the wire.
Needs a repair tech.