Op's gotta do two things. okay probably more then that, but start with these two and go from there.

1) Wash your damn body with soap and water. idc if it's a shower, a bath, a rag in a sink, a pack of baby wipes. they can do this shit while deployed in the far corners of the world, you can do it in your basement. after your done, wear deodorant, don't care what kind (pro-tip: if your super lonely buy womans brand, so you know what they smell like) but speed stick is a minimum.

2) every single time you get the urge to jack off, exercise instead. crunches, girl push ups, unweighted squats, literally anything. it could be picking up a big damn rock you find and throwing it across the yard. but if you want to jerk it, do that instead.

I'm telling you, if you do those two things at least once a day for a year, you will get girl friend.