I avoid all the hassle and just use Nike Swift socks that come with velcro already sewn on. Complement that with some Bauer compression pants with velcro tabs and I don't even think about whether or not the socks will stay up and whether or not my junk is protected (comes with a cup).
Swift socks > other socks
Just hop on the sewing machine and sew Velcro into your socks. Go to a fabric store and buy some Velcro. Takes about 10 mins probably to sew in from setup time to complete.
I use the Bauer 37.5 pants that have a built in jock and velcro tabs onto the pant. Been using this for years and the fact that everything is built into the pant is a huge plus. I don’t know why anyone uses those goofy jock shorts or separate jock nowadays when the Bauer pant is comfy. They’re a little pricey at 89.99 or 79.99 per pair but worth it.