Sorry, not likely without at least opening the iBook and performing some surgery. The old barrel type connector and socket are easily stressed and it is likely an internal connection is broken.
Your best hope for a reasonably priced repair is to take it to a general purpose computer repair shop with Mac experience. Apple will probably quote an obscene amount to fix it, if they are interested at all.
I was having a similar problem with my ibook g4. It could be the dc-in board. There are instructions at ifixit http://www.ifixit.com/Guide/Installing+iBook+G4+14-Inch+933+MHz-1.33+GHz+DC-In+B oard/182/1 if you'd want to try to fix it yourself.
Hi again Dr. John Galt,
I don't think I thanked you for helping me with information on this earlier on.
And on opening the iBook G4, I realized that the socket was broken from inside.
Believe me it was a task to open it and replace it as entire circuit boards etc. had to be removed before I could disconnect the broken socket and it's small circuit and connectors and then replace it with a fresh one.
I actually had to go and get special tools to do this (Special alen keys and star shaped screw drivers etc.)
Now it works just fine.
Just a piece of advise to all iBook G4 users - "Never ever use the laptop on a bed - specially never use it plugged in for charging on the bed. A little tilt of the laptop with any kind of jerky movement will lead to breakage of either the socket or the plug, and that is mucho mucho trouble."
Just for information, there are instructional videos on You-Tube to show you exactly how to open this hardware and how to close this hardware after repairing. Worth watching or else one could end up breaking the plastic case(s) and locks/latches that keep the entire laptop secure.
All in all the G4 is a great workhorse even after so many years.
Thank you so very very much John Galt, each time you have helped me solve my problems.
Would be awesome to catch up with you if Galt's Gulch is anywhere close to my location.
Best wishes to you
Thank you so much for your advise on your message.
I should have thanked you at that time itself, but somehow I slipped up. Apologies for that.
Your advise was perfect. It was a broken DC - in board.
I managed to rectify it at home. Took a lot of patience and work, but the replacement did the trick.
Thanks once again Amberlb.