Preventing yourself from porn and praying is one thing, the most important and useful is to get married ASAP.
It will fulfill your desires halal way and makes you understand imaginations and reality.
As Hadith about marriage points to.
Anas ibn Malik reported: The Messenger of Allah, peace and blessings
be upon him, said, “Whoever Allah provides with ...