As you work in IT , your posture analysis need to be done. Pain can be treated by medicines and physio modalities.However, the root cause of your pain is your posture.Unless it's corrected you will have recurrent pain.
Next Steps
meet a physiotherapist and get your posture analysis done.For immedeate pain relief undergo some physio management .If your pain problem is not bearable and associated with radiating pain and tinglinig, meet and Ortho doctor
Health Tips
Take adequate breaks while you work and adequate water intake is must to have a healthy working.
Don't work continuously for more that 30 mins in the system.Google for vulture neck posture and avaoid that if you are doing it
happy working!!!