Get into the habit of coming home and watching tv shows rather than jumping on the internet to watch porn. Utilize your mind by playing chess or something, something that will set a challenge in your life and distract you from getting bored to watch porn.
the major reason for this freequent masturbutn is that,when a man with small interest in this is alone, a flow of sexual thinks comes in his mind.so the thing u need to do is that dont be alone.be in touch with friends or go to some places which gives relaxation like beach,etc.
take a bath before u sleep.
dont forget to pray also.