difference between "need for" and "need of".

Please explain me the diffference between “need for” and “need of”.
Thank you

If you are in need of something, you need it or ought to have it.
If there is a need for something, that thing would improve a situation or something cannot happen without it.

Maybe other experts would give you a better idea.