I get trouble with the female ports too
I have had a failed port on my laptop - fortunately the laptop can charge on two of its ports but it sucks to have lost one.
I have had a failed port on an iPad, and on my phone. Again I was fortunate to have a fairphone, so I just replaced the port.