To get rid of blue balls you will either have to get some sexual relief by ejaculating or wait for time to pass. You can try to take a cold shower to speed up the process. Or masturbate to cause ejaculation. The condition is not dangerous and will clear on its own. It's just due to prolong sexual arousal without relief.