It wasn't an IT position, but when I discovered a non-management colleague had been making more than me, I was really hurt, angry, and upset. I was management, with a ton of responsibilities, heading high-profile projects, and he was a reporter who made a sizable amount more than me. Instead of immediately seeking another position (which was, I have to admit, my first reaction), I spoke to my immediate manager -- who happens to have been a great boss -- about the disparity. I spoke calmly and laid out the comparative responsibilities; my years of experience; the tasks i had taken on without guidance or request, etc. (there was no LinkedIn, Glassdoor, etc., back then). Ultimately, I got a very big raise that brought me up to par with others in the position I held, despite the ongoing freeze on raises at the time. Sure, I was still hurt and felt used for the years of under-payment, but that was not this particular manager's fault and they earned my undying loyalty. I guess my honesty with the manager could have backfired but since i was not prepared to stay at the company after learning how underpaid I was, I had nothing to lose.